Skip to content

Commit

Permalink
Set STATIC_ROOT for serving static assets using Whitenoise
Browse files Browse the repository at this point in the history
This is one of the few requirements for whitenoise to just work.

See http://whitenoise.evans.io/en/stable/django.html

(This had been done in cdcb34f, but probably lost in a master merge)
  • Loading branch information
JeanFred committed Apr 14, 2020
1 parent 9f4ac38 commit a7045b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mygpo/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def get_intOrNone(name, default):

# Static Files

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

STATICFILES_DIRS = (os.path.abspath(os.path.join(BASE_DIR, '..', 'static')),)
Expand Down

0 comments on commit a7045b9

Please sign in to comment.