Add reset url so it can be used with client test suites.

master
Tom Hacohen 5 years ago
parent 2ac7ec250f
commit 73a55b9817

@ -27,6 +27,7 @@ Including another URLconf
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.conf import settings
from django.urls import include, path, re_path
from django.contrib import admin
from django.views.generic import TemplateView
@ -54,3 +55,8 @@ urlpatterns = [
path('admin/', admin.site.urls),
path('', TemplateView.as_view(template_name='success.html')),
]
if settings.DEBUG:
urlpatterns = [
path('reset/', views.reset, name='reset_debug'),
] + urlpatterns

Loading…
Cancel
Save