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:

enter image description here

but when run app server reason paths not correct.

enter image description here

and in browser's console these errors:

enter image description here

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

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -