summaryrefslogtreecommitdiff
path: root/cms/urls.py
diff options
context:
space:
mode:
authoradityacp2020-07-27 16:49:44 +0530
committeradityacp2020-07-27 16:49:44 +0530
commit96102991ed192ca6a0c48cad4e63b604c0ce6d70 (patch)
tree6a1d15502f45c72d99d806b043efda334b0f3184 /cms/urls.py
parent47eb422c3cb2baf5386df274114019f684fa9af8 (diff)
downloadworkshop_booking-96102991ed192ca6a0c48cad4e63b604c0ce6d70.tar.gz
workshop_booking-96102991ed192ca6a0c48cad4e63b604c0ce6d70.tar.bz2
workshop_booking-96102991ed192ca6a0c48cad4e63b604c0ce6d70.zip
Change models, views, admin, template
- Add active boolean field in all models - Get the pages based on the active status - Minor code refactor in views - Add app_name in urls
Diffstat (limited to 'cms/urls.py')
-rw-r--r--cms/urls.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/cms/urls.py b/cms/urls.py
index b0c7612..baae492 100644
--- a/cms/urls.py
+++ b/cms/urls.py
@@ -2,6 +2,8 @@ from django.conf.urls import url
from cms import views
+app_name = "cms"
+
urlpatterns = [
url('^$', views.home, name='home'),
url('^(?P<permalink>.+)$', views.home, name='home')