You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: