I've got a template, a.html, which looks like this:
<script type="text/javascript" src="jquery-1.4.min.js"></script>
<script type="text/javascript" src="reg.js"></script>
Why doesn't this work?
Try:
<script type="text/javascript" src="{{ MEDIA_URL }}jquery-1.4.min.js"></script>
<script type="text/javascript" src="{{ MEDIA_URL }}reg.js"></script>
You'll need to make sure you're serving static files correctly, and you'll need "django.core.context_processors.media" in the TEMPLATE_CONTEXT_PROCESSORS setting.
Since your URLs can have arbitrary path depths, you need to get absolute path to your JS. e.g.
<script type="text/javascript" src="/js/jquery-1.4.min.js"></script>
<script type="text/javascript" src="/js/reg.js"></script>