On Thu, Jun 26, 2008 at 4:22 PM, JPC <[EMAIL PROTECTED]> wrote: > > Maybe Im wrong in some stupid thing because Im a Django newbie. > My problem is with external JS file. Im trying to include it in the > usual HTML way > (i.e. <script src="/pathtofile/file.js" .....etc) > > > But it seems like the server, while parsing the HTML, is trying to > open it like a web address and look for the file in the URLconf (???), > obviously, never finding it. > > I realize this by using the FireBug for Firefox. > > Am I doing something wrong? > > Thank you very much in advance. >
I am going to assume since you are just starting out that you are using the development server. In which case you want to read this in order to set things up so it can properly serve things like javascript and css files: http://www.djangoproject.com/documentation/static_files/ Karen --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---