In Dajaxice's installation documentation, it says to set DAJAXICE_MEDIA_PREFIX
in settings.py
. Later that value is retrieved in the urls.py
.
In Dajax's installation documentation (which is 2 years old), it says to load the static file like this:
<script src="{{ MEDIA_URL }}/js/prototype.dajax.core.js.js" type="text/javascript" charset="utf-8"></script>
Why is it using MEDIA_URL
? Shouldn't it be using STATIC_URL
since js
, css
, and img
files should be STATIC
?
You're right, their docs are out-of-date for Django > 1.3 I believe. Just replace
MEDIA_URL
withSTATIC_URL
as you've already mentioned, e.g.,