Skip to content

Commit cc718de

Browse files
committed
cove: settings: Pick up STATIC_ROOT STATIC_URL from env
1 parent 805cec0 commit cc718de

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cove/cove_project/settings.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
SENTRY_DSN=(str, ''),
1111
MEDIA_ROOT=(str, os.path.join(BASE_DIR, "media")),
1212
MEDIA_URL=(str, "/media/"),
13+
STATIC_ROOT=(str, os.path.join(BASE_DIR, "static")),
14+
STATIC_URL=(str, "/static/"),
1315
)
1416

1517
# We use the setting to choose whether to show the section about Sentry in the
@@ -67,8 +69,8 @@
6769
USE_L10N = settings.USE_L10N
6870
USE_TZ = settings.USE_TZ
6971

70-
STATIC_URL = '/static/'
71-
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
72+
STATIC_URL = env("STATIC_URL")
73+
STATIC_ROOT = env("STATIC_ROOT")
7274

7375
LANGUAGES = settings.LANGUAGES
7476
LOCALE_PATHS = settings.LOCALE_PATHS

0 commit comments

Comments
 (0)