views:

625

answers:

2

In a Django app, where should I put my javascript/jquery scripts?

+2  A: 

In with your other static media. See here for more info:

http://docs.djangoproject.com/en/dev/howto/static-files/

Paul McMillan
Thanks. How would I go about using that then? Trying to follow http://blog.dpeepul.com/tag/django-voting/ - Step 4. If I put this code in my media folder, how would I include it?
GreenRails
Make sure you're serving it properly, according to the link, and then access it at yoururl/yourmedia/, or whatever you've configured it to, perhaps localhost:8000/media/.
Paul McMillan
[This question](http://stackoverflow.com/questions/2237418/serving-static-media-during-django-development-why-not-media-root) provides more information
Casebash
A: 

and template system, render also that file?

Cristian Salamea