From 034e3384593628d4dc3d6977bc2424408e9553a4 Mon Sep 17 00:00:00 2001 From: Anna Date: Tue, 10 Oct 2017 18:31:23 +0300 Subject: [PATCH] login redirect --- imagehost/settings.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/imagehost/settings.py b/imagehost/settings.py index cdd8603..4509c83 100644 --- a/imagehost/settings.py +++ b/imagehost/settings.py @@ -39,7 +39,8 @@ INSTALLED_APPS = [ 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', - 'imagehosting' + 'imagehosting', + 'taggit' ] MIDDLEWARE_CLASSES = [ @@ -71,7 +72,7 @@ TEMPLATES = [ }, ] -WSGI_APPLICATION = 'mysite.wsgi.application' +WSGI_APPLICATION = 'imagehost.wsgi.application' # Database @@ -125,11 +126,14 @@ USE_TZ = True PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__)) STATIC_URL = '/static/' -STATIC_ROOT = os.path.join(BASE_DIR, 'static') +STATIC_ROOT = os.path.join(PROJECT_ROOT, 'static') ADMIN_TOOLS_MENU = 'myproject.menu.CustomMenu' ADMIN_TOOLS_INDEX_DASHBOARD = 'myproject.dashboard.CustomIndexDashboard' ADMIN_TOOLS_APP_INDEX_DASHBOARD = 'myproject.dashboard.CustomAppIndexDashboard' -MEDIA_ROOT = os.path.join(BASE_DIR, 'media') +MEDIA_ROOT = os.path.join(PROJECT_ROOT, 'media') MEDIA_URL = '/media/' + +LOGIN_REDIRECT_URL = '/' +LOGOUT_REDIRECT_URL = '/'