django.conf.urls.url is deprecated, more to fix

This commit is contained in:
Ariel Rin
2022-02-02 21:39:37 +10:00
parent 234451a7d4
commit c7b99044bc
6 changed files with 48 additions and 47 deletions

View File

@@ -1,5 +1,5 @@
from django.conf.urls import url
from django.contrib.auth.decorators import login_required
from django.urls import re_path
from django.views.generic.base import TemplateView
from . import views
@@ -7,21 +7,21 @@ from . import views
app_name = 'authentication'
urlpatterns = [
url(r'^$', views.index, name='index'),
url(
re_path(r'^$', views.index, name='index'),
re_path(
r'^account/login/$',
TemplateView.as_view(template_name='public/login.html'),
name='login'
),
url(
re_path(
r'^account/characters/main/$',
views.main_character_change,
name='change_main_character'
),
url(
re_path(
r'^account/characters/add/$',
views.add_character,
name='add_character'
),
url(r'^dashboard/$', views.dashboard, name='dashboard'),
re_path(r'^dashboard/$', views.dashboard, name='dashboard'),
]