1
0
mirror of https://github.com/etesync/server synced 2024-12-27 09:48:24 +00:00

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

This commit is contained in:
Tom Hacohen 2020-03-26 18:32:34 +02:00
parent 2ac7ec250f
commit 73a55b9817

View File

@ -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