Skip to content

Commit f816b48

Browse files
committed
Static url changed
1 parent a4d3db4 commit f816b48

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

linuxiston/settings.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,9 @@
134134
# https://docs.djangoproject.com/en/4.0/howto/static-files/
135135

136136
STATIC_URL = "static/"
137-
STATICFILES_DIRS = [BASE_DIR / "static"]
138-
if DEBUG == False:
137+
if DEBUG:
138+
STATICFILES_DIRS = [BASE_DIR / "static"]
139+
else:
139140
STATIC_ROOT = BASE_DIR / "static_root"
140141

141142
MEDIA_URL = "media/"

0 commit comments

Comments
 (0)