Maybe an easy way for qa env you could add something like: (r'^scripts/(.*)', 'django.views.static.serve', {'document_root':'jscripts/'}),
to your urls.py of your project. And in your template: <script type="text/javascript" src="/scripts/lib/jquery.js"></script> This will looks for jquery.js inside the jscript directory (yourproject/jscripts/lib/..) On Sep 19, 10:03 pm, yozhik <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm learning django and ran into the following problem. I have an html > file with an external javascript file. The .js file is in the same > directory as html file . The problem is django ignores the script in > the file but works fine otherwise, i.e. displays the html page > correctly. Also, if I put the script inside html file (as opposed to > in a separate file in the same directory) there are no problems. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---