Django development server serving css but not js

Posted by Wisco crew on Stack Overflow See other posts from Stack Overflow or by Wisco crew
Published on 2012-06-19T03:13:10Z Indexed on 2012/06/19 3:15 UTC
Read the original article Hit count: 130

Filed under:
|

I am developing a django (1.4) app on my local machine. I am running the built-in development server with python manage.py runserver. In base.html I have:

<link href="{{ STATIC_URL }}bootstrap.css" rel="stylesheet" type="text/css" />
<script src="{{ STATIC_URL }}boostrap-dropdown.js" type="text/javascript"></script>

boostrap.css loads just fine when I load a page, but bootstrap-dropdown.js is 404'd. They are sitting right next to each other in my static directory. Relevant parts of settings.py:

STATIC_URL = '/static/'
STATICFILES_DIRS = (
'/home/username/projects/projectname/static',)

Debug is set to True. I have tried it both with and without the staticfiles_urlpatterns trick.

Django can find one file in the directory but not the other? I think I'm going crazy.

© Stack Overflow or respective owner

Related posts about python

Related posts about django