aboutsummaryrefslogtreecommitdiffstats
path: root/qtip/web/web/settings.py
diff options
context:
space:
mode:
authorakhilbatra898 <akhil.batra@research.iiit.ac.in>2017-07-15 09:44:23 +0530
committerakhilbatra898 <akhil.batra@research.iiit.ac.in>2017-07-15 09:57:26 +0530
commit0fd661ea6bae299b69e65f90966304012eb794d2 (patch)
tree73bcd903e77fc656863b5241df39f028f8e528f5 /qtip/web/web/settings.py
parent2e4a3dfc8b45ae6dc72aa85510ce920dbafe54ad (diff)
Add Authentication and Basic CRUD for Repos
- Map urls to the CRUD views - Add html templates for the views - Set authentication settings Change-Id: Ifcfe39a8341d44376e322d195e995fcaa1716d7d Signed-off-by: akhilbatra898 <akhil.batra@research.iiit.ac.in>
Diffstat (limited to 'qtip/web/web/settings.py')
-rw-r--r--qtip/web/web/settings.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/qtip/web/web/settings.py b/qtip/web/web/settings.py
index 30bb6e38..8963ea89 100644
--- a/qtip/web/web/settings.py
+++ b/qtip/web/web/settings.py
@@ -55,7 +55,7 @@ ROOT_URLCONF = 'web.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
- 'DIRS': [],
+ 'DIRS': ['templates'],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
@@ -119,3 +119,8 @@ USE_TZ = True
# https://docs.djangoproject.com/en/1.11/howto/static-files/
STATIC_URL = '/static/'
+
+# Auth Settings
+LOGIN_URL = '/bench/login/'
+LOGIN_REDIRECT_URL = '/bench/dashboard/'
+LOGOUT_REDIRECT_URL = LOGIN_URL