mirror of
https://github.com/etesync/server
synced 2024-11-22 08:48:07 +00:00
fix: use django.urls.path instead of deprecated django.conf.urls.url
This commit is contained in:
parent
04ca0ae5db
commit
e635e081c7
@ -1,7 +1,6 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.conf.urls import url
|
|
||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
from django.urls import path, re_path
|
from django.urls import path, re_path
|
||||||
from django.views.generic import TemplateView
|
from django.views.generic import TemplateView
|
||||||
@ -9,7 +8,7 @@ from django.views.static import serve
|
|||||||
from django.contrib.staticfiles import finders
|
from django.contrib.staticfiles import finders
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
url(r"^admin/", admin.site.urls),
|
path("admin/", admin.site.urls),
|
||||||
path("", TemplateView.as_view(template_name="success.html")),
|
path("", TemplateView.as_view(template_name="success.html")),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user