Re: Javascript in external file not working

2012-11-27 Thread lokesh
Hi, Please check the DEBUG is True or False in settings. If the DEBUG is True it will not serve the static files in development server, So you need to serve the static files from some other server or you need to change the DEBUG level as False if you are in development mode. Thanks, Lokesh O

Re: Javascript in external file not working

2012-11-26 Thread Pankaj Singh
On Tue, Nov 27, 2012 at 4:34 AM, Loai Ghoraba wrote: > Hi all > > When I have a script like this: > window.onload=function f(){} it is working fine. but when > I create an external js file and put it within the static directory, and > call the function like this > > window.onload=f > > It is

Re: Javascript in external file not working

2012-11-26 Thread Bill Beal
I think {{STATIC_URL}} should have spaces, like {{ STATIC_URL }}. On Mon, Nov 26, 2012 at 6:04 PM, Loai Ghoraba wrote: > Hi all > > When I have a script like this: > window.onload=function f(){} it is working fine. but > when I create an external js file and put it within the static directory,