load MEDIA_ROOT AND STATIC_ROOT from .env
This commit is contained in:
parent
a340154cd9
commit
f2720e4fb2
1 changed files with 2 additions and 2 deletions
|
@ -142,10 +142,10 @@ USE_TZ = True
|
|||
# Static files (CSS, JavaScript, Images)
|
||||
# https://docs.djangoproject.com/en/4.2/howto/static-files/
|
||||
|
||||
STATIC_ROOT = 'staticfiles'
|
||||
STATIC_ROOT = os.getenv('STATIC_ROOT')
|
||||
STATIC_URL = '/static/'
|
||||
|
||||
MEDIA_ROOT = 'userfiles'
|
||||
MEDIA_ROOT = os.getenv('MEDIA_ROOT')
|
||||
MEDIA_URL = '/media/'
|
||||
|
||||
STORAGES = {
|
||||
|
|
Loading…
Reference in a new issue