I have a really basic question. I am trying to create some AJAX functions in a Django project. I plan to use jQuery. Right now, I'm just running the code locally through Linux. I tested the code here , so I'm sure it works. But it's hard for me to figure out where to place the jQuery source code in combination with my settings.
I downloaded jQuery and put it in what I think is my Media folder. The settings.py file is as follows:
MEDIA_ROOT = os.path.join(PROJECT_DIR, 'books/media/')<br>
MEDIA_URL = 'http://localhost:8000/books/media/'
In my html template, I refer to:
<script type="text/javascript" src="/media/js/jquery-1.4.2.min.js">
But none of my features work. I am sure that this is something stupid and obvious (although obviously not obvious to me). How to configure jQuery?
source
share