Skip to content

Commit

Permalink
Set STATIC_ROOT to a filesystem directory. (see #673)
Browse files Browse the repository at this point in the history
The issue shows a message that talks about not setting
STATIC_ROOT to a filesystem directory, and how that is
the cause of a problem. The current configuration appears,
by setting its path to an empty string, to have /static/
appear at the root of the app directory. So, this change
attempts to keep that as it is, but express it differently
by specifying the current directory instead.
  • Loading branch information
jnga committed Jan 24, 2018
1 parent 6fff995 commit 373df0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gobotany/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@

# Static files (CSS, JavaScript, images)
# https://docs.djangoproject.com/en/1.11/howto/static-files/
STATIC_ROOT = ''
STATIC_ROOT = (THIS_DIRECTORY)
STATIC_URL = '/static/'
STATICFILES_DIRS = (
os.path.join(THIS_DIRECTORY, 'static'),
Expand Down

0 comments on commit 373df0e

Please sign in to comment.