Skip to content

Commit

Permalink
Fix wrong configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
stariluz committed Jul 27, 2024
1 parent 6426edb commit 873d6aa
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
16 changes: 8 additions & 8 deletions myFacegram/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/'
Expand Down
16 changes: 8 additions & 8 deletions myFacegram/settings_production.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/'
Expand Down

0 comments on commit 873d6aa

Please sign in to comment.