Key Reference:
http://www.djangoproject.com/documentation/static_files/

You need 2 <Location> in your HTTPD configuration file, one for things
 that will be processed by Django, one for static files.
Thus, you need to actually put your static JS files on a
/var/www/static-file/ or some web-served thing and use that URL
also be sure that the <Location> handle  is set to None so it doesn't
waste overhead.


On Thu, Jun 26, 2008 at 3: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.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to