Skip to content

Commit

Permalink
Fix static
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Edwards committed Aug 12, 2021
1 parent ee67217 commit dece5ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packagebuilder/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@

MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'whitenoise.middleware.WhiteNoiseMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
Expand Down Expand Up @@ -107,11 +108,12 @@
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.6/howto/static-files/

STATIC_ROOT = 'staticfiles'
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
STATIC_URL = '/static/'
ADMIN_MEDIA_PREFIX = '/static/admin/'

STATICFILES_DIRS = (
os.path.join(BASE_DIR, 'static'),
os.path.join(PROJECT_PATH, 'static'),
)

Expand Down

0 comments on commit dece5ad

Please sign in to comment.