Commit a2d327c9 authored by Aljaž Srebrnič's avatar Aljaž Srebrnič

Migrato url() a path()

parent dac931da
......@@ -13,10 +13,10 @@ Including another URLconf
1. Import the include() function: from django.conf.urls import url, include
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url, include
from django.urls import path, include
from django.contrib import admin
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^things/', include('things.urls'))
path('admin/', admin.site.urls),
path('things/', include('things.urls'))
]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment