add debug setting for static url
This commit is contained in:
@@ -192,6 +192,9 @@ SITE_ID = 1
|
|||||||
# Static files (CSS, JavaScript, Images)
|
# Static files (CSS, JavaScript, Images)
|
||||||
# https://docs.djangoproject.com/en/3.0/howto/static-files/
|
# https://docs.djangoproject.com/en/3.0/howto/static-files/
|
||||||
|
|
||||||
|
if DEBUG:
|
||||||
|
STATIC_URL = "/static/"
|
||||||
|
else:
|
||||||
STATIC_URL = "/assets/"
|
STATIC_URL = "/assets/"
|
||||||
|
|
||||||
STATICFILES_DIRS = [os.path.join(BASE_DIR, "static")]
|
STATICFILES_DIRS = [os.path.join(BASE_DIR, "static")]
|
||||||
|
|||||||
Reference in New Issue
Block a user