SyntaxFix
Write A Post
Hire A Developer
Questions
I found this to be the simplest approach for Django 1.3:
views.py
from local_settings import BASE_URL def root(request): return render_to_response('hero.html', {'BASE_URL': BASE_URL})
hero.html
var BASE_URL = '{{ JS_BASE_URL }}';