Make URLs work
This commit is contained in:
parent
17ff53277b
commit
00f6d56c25
2 changed files with 12 additions and 1 deletions
7
petition/urls.py
Normal file
7
petition/urls.py
Normal file
|
@ -0,0 +1,7 @@
|
|||
from django.conf.urls import url
|
||||
from .views import view_petition
|
||||
|
||||
|
||||
urlpatterns = [
|
||||
url(r'^', view_petition),
|
||||
]
|
|
@ -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)),
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue