diff --git a/archivist/core/settings.py b/archivist/core/settings.py index d76d25b..9e428c2 100644 --- a/archivist/core/settings.py +++ b/archivist/core/settings.py @@ -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