X-Git-Url: https://git.mdrn.pl/fnpdjango.git/blobdiff_plain/c7680f63416bfb4e05c97d024e767ab7501c944d..fb91cca331c5214a808d27a283b5dad2e4fc73d1:/tests/urls.py?ds=sidebyside diff --git a/tests/urls.py b/tests/urls.py index e9ee19f..06536d8 100644 --- 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 fnpdjango.utils.urls import i18n_patterns from . import views -# For Django < 1.7. -admin.autodiscover() - 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), +]