1👍
Try
<script type="text/javascript" src="{{ STATIC_URL }}js/myjscript.js">
This page is where I got my information from.
In case that site is down, they give an example:
<img src="{{ STATIC_URL }}images/hi.jpg" alt="Hi!" />
0👍
Perhaps it goes without saying, make sure that STATIC_URL
is set to something intelligent in your settings.py
. I don’t know what this gets set to by default in a Windows deployment.
- [Answer]-Limit inlines to edit mode in Django's ModelAdmin
- [Answer]-Link to register with google gives error from my page but not from allauth page
- [Answer]-Django relationship query
- [Answer]-Django Database Access Optimization
Source:stackexchange.com