Skip to content
Snippets Groups Projects
Commit c5a69902 authored by florimondmanca's avatar florimondmanca
Browse files

add STATIC_ROOT and MEDIA_ROOT to common settings

parent 35906423
No related branches found
No related tags found
No related merge requests found
......@@ -188,7 +188,10 @@ USE_TZ = True
# Static files (CSS, JavaScript, Images) and media files (user-uploaded)
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
# Celery settings
......
......@@ -18,8 +18,6 @@ STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'staticfiles'),
]
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
# Media files config
DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment