Skip to content

Commit

Permalink
Fixed static / media roots.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeRomaa committed Feb 26, 2021
1 parent c270625 commit 445a2b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ DEV_ENV =
ALLOWED_HOSTS =
SECRET_KEY =

STATIC_ROOT =
MEDIA_ROOT =

VATSIM_CONNECT_CLIENT_ID =
VATSIM_CONNECT_CLIENT_SECRET =
VATSIM_CONNECT_REDIRECT_URI =
Expand Down
4 changes: 2 additions & 2 deletions zhu_core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,11 @@

STATIC_URL = '/static/'

STATIC_ROOT = BASE_DIR / 'static'
STATIC_ROOT = os.getenv('STATIC_ROOT', '')

MEDIA_URL = '/media/'

MEDIA_ROOT = BASE_DIR / 'media'
MEDIA_ROOT = os.getenv('MEDIA_ROOT', '')


# Miscellaneous
Expand Down

0 comments on commit 445a2b3

Please sign in to comment.