fnp
/
fnpdjango.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Django 4
[fnpdjango.git]
/
tests
/
urls.py
diff --git
a/tests/urls.py
b/tests/urls.py
index
e9ee19f
..
06536d8
100644
(file)
--- a/
tests/urls.py
+++ b/
tests/urls.py
@@
-1,15
+1,9
@@
-from django.
conf.urls import url
+from django.
urls import path
from django.contrib import admin
from django.contrib import admin
-from fnpdjango.utils.urls import i18n_patterns
from . import views
from . import views
-# For Django < 1.7.
-admin.autodiscover()
-
urlpatterns = [
urlpatterns = [
- url(r'^admin/', admin.site.urls),
- url(r'^ip/$', views.ip),
-] + i18n_patterns(
- url(r'^$', views.get_lang),
-)
+ path('admin/', admin.site.urls),
+ path('ip/', views.ip),
+]