summaryrefslogtreecommitdiff
path: root/workshop_portal
diff options
context:
space:
mode:
authorAkshen2017-02-14 14:01:37 +0530
committerAkshen2017-05-19 15:30:31 +0530
commit8a2bd288c77ce3165518f7bf1eff75825b4db5b3 (patch)
treeb591cdd49ecb8571585b4ac5428d87ebc01ea9ee /workshop_portal
parent379d04803c59b350b7061ab2557542449aafc0e8 (diff)
downloadworkshop_booking-8a2bd288c77ce3165518f7bf1eff75825b4db5b3.tar.gz
workshop_booking-8a2bd288c77ce3165518f7bf1eff75825b4db5b3.tar.bz2
workshop_booking-8a2bd288c77ce3165518f7bf1eff75825b4db5b3.zip
Basic Login Done
Diffstat (limited to 'workshop_portal')
-rw-r--r--workshop_portal/settings.py6
-rw-r--r--workshop_portal/urls.py8
2 files changed, 14 insertions, 0 deletions
diff --git a/workshop_portal/settings.py b/workshop_portal/settings.py
index 923ee4f..5681433 100644
--- a/workshop_portal/settings.py
+++ b/workshop_portal/settings.py
@@ -37,6 +37,8 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
+ 'workshop_app',
+ 'fullcalendar',
]
MIDDLEWARE = [
@@ -118,3 +120,7 @@ USE_TZ = True
# https://docs.djangoproject.com/en/1.10/howto/static-files/
STATIC_URL = '/static/'
+
+LOGIN_URL = "/login/"
+
+LOGIN_REDIRECT_URL = "/profile" \ No newline at end of file
diff --git a/workshop_portal/urls.py b/workshop_portal/urls.py
index f1a755d..a25a634 100644
--- a/workshop_portal/urls.py
+++ b/workshop_portal/urls.py
@@ -15,7 +15,15 @@ Including another URLconf
"""
from django.conf.urls import url
from django.contrib import admin
+from workshop_app import views
urlpatterns = [
url(r'^admin/', admin.site.urls),
+ url(r'^login/$', views.user_login),
+ url(r'^logout/$', views.user_logout),
+ url(r'^register/$', views.user_register),
+ url(r'^book/$', views.book),
+ url(r'^manage/$', views.manage),
+ url(r'^view_profile/$', views.view_profile),
+ url(r'^edit_profile/$', views.edit_profile)
]