From 778a1d2d8100ad0e2bfc2ce98bf610c9961f4a5e Mon Sep 17 00:00:00 2001 From: pnshiralkar Date: Wed, 13 May 2020 12:36:25 +0530 Subject: feat: CMS App - Added cms app to INSTALLED_APPS in settings - Removed index URL from workshop_app/urls.py - Added cms urls to workshop_portal/urls.py - Added cms_base html for renderring cms - Modified static file model to save uploaded files into static location --- workshop_portal/settings.py | 1 + 1 file changed, 1 insertion(+) (limited to 'workshop_portal/settings.py') diff --git a/workshop_portal/settings.py b/workshop_portal/settings.py index 23f9f1a..bdc0b05 100644 --- a/workshop_portal/settings.py +++ b/workshop_portal/settings.py @@ -47,6 +47,7 @@ INSTALLED_APPS = [ 'workshop_app', 'statistics_app', 'teams', + 'cms', ] MIDDLEWARE = [ -- cgit From 8a67bbe45e51f33dc82f4492f8dcc318f0995256 Mon Sep 17 00:00:00 2001 From: adityacp Date: Mon, 27 Jul 2020 17:13:57 +0530 Subject: Change project files - Add project views to redirect to the cms home page if available - Add home page title variable in the settings - Change initial reg ex url pattern for the app urls --- workshop_portal/settings.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'workshop_portal/settings.py') diff --git a/workshop_portal/settings.py b/workshop_portal/settings.py index ad727af..b340ab2 100644 --- a/workshop_portal/settings.py +++ b/workshop_portal/settings.py @@ -127,7 +127,7 @@ USE_TZ = True STATIC_URL = '/static/' -STATIC_ROOT = os.path.join(BASE_DIR, "static/") +STATIC_ROOT = 'workshop_app/static/' LOGIN_URL = '/login/' @@ -156,7 +156,10 @@ ADMIN_EMAIL = 'your admin email' # Set True or False to view/hide SHOW_WORKSHOP_STATS = True -LOGIN_REDIRECT_URL = '/profile' +# Create a CMS page as a home page and give the page title here +HOME_PAGE_TITLE = "home-page-title" + +LOGIN_REDIRECT_URL = '/workshop/login' SESSION_EXPIRE_AT_BROWSER_CLOSE = True SESSION_SAVE_EVERY_REQUEST = True SESSION_COOKIE_AGE = 3600 -- cgit