It was working fine before, and I have no clue what changed but I'm getting errors now with static files loading =( Please help!
Using Django 1.4
Urls.py
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
urlpatterns += staticfiles_urlpatterns()
Settings.py
STATIC_ROOT = '/root/abc/abc_app/sitestatic'
# URL prefix for static files.
STATIC_URL = '/static/'
# Additional locations of static files
STATICFILES_DIRS = (
'/root/abc/static/',
'/Users/blahusername/djangoproj/abc/static/',
)
Header.html
<script type="text/javascript" src="/static/js/jquery-1.7.1.min.js"></script>
Errors in browser:
GET file://localhost/static/js/jquery-1.7.1.min.js
Unsafe JavaScript attempt to access frame with URL file://localhost/Users/blahusername/djangoproj/abc/abc_app/templates/index.html from frame with URL http://www.youtube.com/embed/yyy. Domains, protocols and ports must match.