On May 18, 9:57 am, Matt W <hf_scarf...@hotmail.com> wrote: > Hello Everyone, > > I just started to use Django and I was wondering how I could setup > javascipt (AJAX to be more specfic) in my djagno project in order to > run a script. Here is the script code. > [snip] > > In specific I was wondering where I place the source code for the > javascipt file along with what files I need to configure in the > project folder. I'm very new to django so I don't really know how to > even start this. >
Django is a server-side framework, it doesn't require configuration for client-side javascript, save for perhaps your MEDIA_URL. Your script doesn't reference any local javascript files, but if you had them, you'd probably want to put them in your media directory, say media/js. Your templates would just reference them, perhaps using {{ MEDIA_URL }} or just hard-coding a path to them. You are free to sprinkle javascript <script> tags throughout your templates. If you need to use javascript with forms, you might find this useful: http://docs.djangoproject.com/en/1.2/topics/forms/media/ Best, BN -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.