diff options
author | akhilbatra898 <akhil.batra@research.iiit.ac.in> | 2017-07-15 09:44:23 +0530 |
---|---|---|
committer | akhilbatra898 <akhil.batra@research.iiit.ac.in> | 2017-07-15 09:57:26 +0530 |
commit | 0fd661ea6bae299b69e65f90966304012eb794d2 (patch) | |
tree | 73bcd903e77fc656863b5241df39f028f8e528f5 /qtip/web/web | |
parent | 2e4a3dfc8b45ae6dc72aa85510ce920dbafe54ad (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')
-rw-r--r-- | qtip/web/web/settings.py | 7 | ||||
-rw-r--r-- | qtip/web/web/urls.py | 3 |
2 files changed, 8 insertions, 2 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 diff --git a/qtip/web/web/urls.py b/qtip/web/web/urls.py index b0de5fe2..49aaeb98 100644 --- a/qtip/web/web/urls.py +++ b/qtip/web/web/urls.py @@ -13,9 +13,10 @@ Including another URLconf 1. Import the include() function: from django.conf.urls import url, include 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) """ -from django.conf.urls import url +from django.conf.urls import include, url from django.contrib import admin urlpatterns = [ + url(r'^bench/', include('bench.urls')), url(r'^admin/', admin.site.urls), ] |