diff --git a/wikijs/urls.py b/wikijs/urls.py index 8f76a87..d39aee8 100644 --- a/wikijs/urls.py +++ b/wikijs/urls.py @@ -1,17 +1,17 @@ -from django.conf.urls import url, include +from django.urls import re_path, include from . import views app_name = 'wikijs' module_urls = [ - url(r'^activate/$', views.activate_wikijs, name='activate'), - url(r'^deactivate/$', views.deactivate_wikijs, name='deactivate'), - url(r'^reset_password/$', views.reset_password, name='reset_password'), - url(r'^set_password/$', views.set_password, name='set_password'), + re_path(r'^activate/$', views.activate_wikijs, name='activate'), + re_path(r'^deactivate/$', views.deactivate_wikijs, name='deactivate'), + re_path(r'^reset_password/$', views.reset_password, name='reset_password'), + re_path(r'^set_password/$', views.set_password, name='set_password'), ] urlpatterns = [ - url(r'^wikijs/', include((module_urls, app_name), namespace=app_name)) + re_path(r'^wikijs/', include((module_urls, app_name), namespace=app_name)) ]