knyghty / django-admin-demo

A small Django project with some test data and the admin configured
MIT License
9 stars 5 forks source link

Add a way to test the congrats screen out of the box #28

Open thibaudcolas opened 5 days ago

thibaudcolas commented 5 days ago

It’s just one extra URL:

from django.urls import path
from django.views.debug import default_urlconf

urlpatterns = [
    path("debug/default_urlconf/", default_urlconf),
]
knyghty commented 5 days ago

At the moment the home page redirects to the admin which I think is more useful for most cases. I'd be happy to add this as /congrats or /welcome, or something, what do you think?

thibaudcolas commented 5 days ago

that sounds great to me! I don’t know how I landed on the URL I shared above, it was in the context of those other non-admin test URLs: https://github.com/thibaudcolas/django_admin_tests/blob/08d775eaa91d3c845591d7b6036c9f7a32468818/demo/demo_urls.py#L91-L102