Make URLs work

This commit is contained in:
Théophile Bastian 2018-02-05 22:17:04 +01:00
parent 17ff53277b
commit 00f6d56c25
2 changed files with 12 additions and 1 deletions

7
petition/urls.py Normal file
View file

@ -0,0 +1,7 @@
from django.conf.urls import url
from .views import view_petition
urlpatterns = [
url(r'^', view_petition),
]

View file

@ -15,7 +15,11 @@ Including another URLconf
"""
from django.contrib import admin
from django.urls import path
from django.conf.urls import url, include
from petition import urls as petition_urls
urlpatterns = [
path('admin/', admin.site.urls),
path(r'admin/', admin.site.urls),
url(r'', include(petition_urls)),
]