Thanks
Why is your javascript file in the same directory as the template? How
have you configured your server to serve static assets?
--
DR.
What I have done is:
1) In urls.py I added (r'^site_media/(?P<path>.*)$',
'django.views.static.serve',{'document_root': 'first/site_media/
scripts', 'show_indexes': True})
2) In my view I have a render_to_response('TopicTree.html',
{'site_media':'first/site_media/scripts/'},
context_instance=RequestContext(request))
3) In my TopicTree.html template I have a <script type="text/
JavaScript" src="{{ site_media }}alert.js"></script>