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

add STATIC_URL and MEDIA_URL to common settings

parent bbdfcfbf
No related branches found
No related tags found
No related merge requests found
...@@ -187,6 +187,9 @@ USE_TZ = True ...@@ -187,6 +187,9 @@ USE_TZ = True
# Static files (CSS, JavaScript, Images) and media files (user-uploaded) # Static files (CSS, JavaScript, Images) and media files (user-uploaded)
STATIC_URL = '/static/'
MEDIA_URL = '/media/'
# Celery settings # Celery settings
CELERY_BROKER_URL = os.environ.get('REDIS_URL', 'redis://localhost:6379') CELERY_BROKER_URL = os.environ.get('REDIS_URL', 'redis://localhost:6379')
......
...@@ -15,7 +15,6 @@ ALLOWED_HOSTS = ['localhost'] ...@@ -15,7 +15,6 @@ ALLOWED_HOSTS = ['localhost']
# Static files config # Static files config
STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage' STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
STATIC_URL = '/static/'
STATICFILES_DIRS = [ STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'staticfiles'), os.path.join(BASE_DIR, 'staticfiles'),
] ]
...@@ -23,5 +22,4 @@ STATIC_ROOT = os.path.join(BASE_DIR, 'static') ...@@ -23,5 +22,4 @@ STATIC_ROOT = os.path.join(BASE_DIR, 'static')
# Media files config # Media files config
DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage' DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media') 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