From 873d6aae2b7a4c252a60b4d3e406ee11efcb0232 Mon Sep 17 00:00:00 2001 From: Adora Date: Sat, 27 Jul 2024 09:58:00 -0600 Subject: [PATCH] Fix wrong configuration --- manage.py | 2 +- myFacegram/settings.py | 16 ++++++++-------- myFacegram/settings_production.py | 16 ++++++++-------- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/manage.py b/manage.py index 881307e..38c6865 100644 --- a/manage.py +++ b/manage.py @@ -5,7 +5,7 @@ def main(): """Run administrative tasks.""" - os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'myFacegram.settings') + os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'myFacegram.settings_production') try: from django.core.management import execute_from_command_line except ImportError as exc: diff --git a/myFacegram/settings.py b/myFacegram/settings.py index a8de0d8..dd517c9 100644 --- a/myFacegram/settings.py +++ b/myFacegram/settings.py @@ -136,16 +136,16 @@ PROJECT_DIR = os.path.dirname(os.path.abspath(__file__)) STATIC_ROOT = os.path.join(BASE_DIR, 'assets') -# STATIC_URL = '/static/' +STATIC_URL = '/static/' -# STATICFILES_DIRS = [ -# (BASE_DIR / 'static'), -# ] +STATICFILES_DIRS = [ + (BASE_DIR / 'static'), +] -# STATICFILES_FINDERS = [ -# 'django.contrib.staticfiles.finders.FileSystemFinder', -# 'django.contrib.staticfiles.finders.AppDirectoriesFinder', -# ] +STATICFILES_FINDERS = [ + 'django.contrib.staticfiles.finders.FileSystemFinder', + 'django.contrib.staticfiles.finders.AppDirectoriesFinder', +] SRF_COOKIE_SECURE=True LOGIN_URL = '/users/login/' diff --git a/myFacegram/settings_production.py b/myFacegram/settings_production.py index daf4135..9ad8345 100644 --- a/myFacegram/settings_production.py +++ b/myFacegram/settings_production.py @@ -152,14 +152,14 @@ PROJECT_DIR = os.path.dirname(os.path.abspath(__file__)) STATIC_ROOT = os.path.join(BASE_DIR, 'assets') STATIC_URL = 'https://stariluz.github.io/myFacegram/' -# STATICFILES_DIRS = [ -# (BASE_DIR / 'static'), -# ] - -# STATICFILES_FINDERS = [ -# 'django.contrib.staticfiles.finders.FileSystemFinder', -# 'django.contrib.staticfiles.finders.AppDirectoriesFinder', -# ] +STATICFILES_DIRS = [ + (BASE_DIR / 'static'), +] + +STATICFILES_FINDERS = [ + 'django.contrib.staticfiles.finders.FileSystemFinder', + 'django.contrib.staticfiles.finders.AppDirectoriesFinder', +] SRF_COOKIE_SECURE=True LOGIN_URL = '/users/login/'