Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If Django is in development mode #157

Open
igorcc opened this issue Nov 22, 2017 · 0 comments
Open

If Django is in development mode #157

igorcc opened this issue Nov 22, 2017 · 0 comments

Comments

@igorcc
Copy link

igorcc commented Nov 22, 2017

If Django is in DEBUG mode it will not work because often settings.STATIC_ROOT is not defined in development mode.
I propose to make changes in utils.py line 236 from
'root': settings.STATIC_ROOT,
to
'root': settings.STATIC_ROOT if not settings.DEBUG else settings.STATICFILES_DIRS[0],
It is tricky however as settings.STATICFILES_DIRS should have for the first item a valid STATIC_ROOT path.
But for me it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant