javascript - Django debug toolbar wrong paths -
i have created django app , deployed server. use django features such django-debug-toolbar installed requirements.txt file using pip
.
when run app locally, on localhost, works fine , features loaded successfully.
here right structure of sources loaded:
but when run app server reason paths not correct.
and in browser's console these errors:
all these paths installed packages django-debug-toolbar , wouldn't make sense change them. example, toolbar.js
file loaded command: <script src="{% static 'debug_toolbar/js/toolbar.js' %}"></script>
which can found in the: lib/python2.7/site-packages/debug_toolbar/templates/debug_toolbar/base.html
file, created after installed packages requirements.txt file.
that should work fine. work fine when run locally, doesn't when run on new server. ideas?
as mentioned in comments, need call collectstatic
when make changes static files.
what command copy static files static
folders location specify in static_root
directory, should same nginx looking files.
the error received because files weren't in directory nginx looking in.
Comments
Post a Comment