summaryrefslogtreecommitdiff
path: root/myadmin/urls.py
diff options
context:
space:
mode:
authorcoderick142017-05-17 15:40:18 +0530
committercoderick142017-05-17 15:41:00 +0530
commita1e0a5502f04da68b6a9ca8508dda3f9d7e1d055 (patch)
tree20181e6b1936f50ad48d8e35720d64a37566f558 /myadmin/urls.py
parent6f4a84c1e58ff4d54aab94cbee26e995328b05b8 (diff)
downloadSBHS-2018-Rpi-a1e0a5502f04da68b6a9ca8508dda3f9d7e1d055.tar.gz
SBHS-2018-Rpi-a1e0a5502f04da68b6a9ca8508dda3f9d7e1d055.tar.bz2
SBHS-2018-Rpi-a1e0a5502f04da68b6a9ca8508dda3f9d7e1d055.zip
Upgrade to Django 1.11
- Database integration yet to be tested
Diffstat (limited to 'myadmin/urls.py')
-rw-r--r--myadmin/urls.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/myadmin/urls.py b/myadmin/urls.py
new file mode 100644
index 0000000..0381567
--- /dev/null
+++ b/myadmin/urls.py
@@ -0,0 +1,12 @@
+from django.conf.urls import url
+
+from . import views
+
+urlpatterns = [
+ url(r'^admin/?$', views.index, name='admin_index'),
+ url(r'^admin/bookings/?$', views.booking_index, name='admin_bookings'),
+ url(r'^admin/webcam/?$', views.webcam_index, name='admin_webcam'),
+ url(r'^admin/profile/([0-9]+)/?$', views.profile, name='admin_profile'),
+
+ url(r'^admin/toggle_allotment_mode/?$', views.toggle_allotment_mode, name='admin_toggle_allotment_mode'),
+] \ No newline at end of file