Add: static files config
This commit is contained in:
parent
1b8ccac961
commit
b1bf88eada
1 changed files with 19 additions and 3 deletions
|
@ -158,10 +158,26 @@ USE_TZ = True
|
|||
#############################################################
|
||||
|
||||
|
||||
# Static files (CSS, JavaScript, Images)
|
||||
# https://docs.djangoproject.com/en/4.0/howto/static-files/
|
||||
#############################################################
|
||||
# SRC: https://devcenter.heroku.com/articles/django-assets
|
||||
|
||||
# Static files (CSS, JavaScript, Images)
|
||||
# https://docs.djangoproject.com/en/1.9/howto/static-files/
|
||||
#############################################################
|
||||
STATIC_ROOT = os.path.join(CORE_DIR, 'staticfiles')
|
||||
STATIC_URL = '/static/'
|
||||
|
||||
# Extra places for collectstatic to find static files.
|
||||
STATICFILES_DIRS = (
|
||||
os.path.join(CORE_DIR, 'apps/static'),
|
||||
os.path.join(BASE_DIR, 'static'),
|
||||
)
|
||||
|
||||
|
||||
MEDIA_URL = '/media/'
|
||||
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
|
||||
#############################################################
|
||||
|
||||
STATIC_URL = 'static/'
|
||||
|
||||
# Default primary key field type
|
||||
# https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field
|
||||
|
|
Loading…
Reference in a new issue