Re: including javascript in templates

2008-11-06 Thread Steve Holden
You don't need to serve them from Apache for development - then it's OK to use Django. It's only in production you want to use some other server for media and static content. I have this at the end of my settings.py just to keep my test sites looking reasonable: # Serve static content so test si

Re: including javascript in templates

2008-11-06 Thread David Sáez
Hi Håkan, yes, I missed the reading of that link. Now that I have set up correctly it works fine. But it has a BIG disclaimer, and the reccommendation is to let the webserver to serve these files (that is what I really want) http://docs.djangoproject.com/en/dev/howto/deployment/modpython/#servin

Re: including javascript in templates

2008-11-06 Thread Håkan Waara
6 nov 2008 kl. 17.35 skrev David Sáez: > > Hi, I'm a newbie to django and I'm dealing with some configuration > stuff that is making me going crazy. My problem is very simple and I > have a temporal solution, but I guess there might be a better way to > do it. So... there goes the question... > >

including javascript in templates

2008-11-06 Thread David Sáez
Hi, I'm a newbie to django and I'm dealing with some configuration stuff that is making me going crazy. My problem is very simple and I have a temporal solution, but I guess there might be a better way to do it. So... there goes the question... ¿ How do I include javascript in a basic template ?