I have a javascript file in my app static directory.

However inside my javascript file. I want to make use of an image. That is:

Javascript file is d6.js and it contains this code

var imageBank = baseUrl + "static/Game/blank.gif";

And then my html has this

{% load staticfiles %}
<script src="{% static 'Game/d6.js' %}"></script>


However when i render my html file the javascript file is unable to locate the 
img file (blank.gif). How do i get to reference an img file inside the static 
directory?




-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/899b66b3-8b98-402e-a926-e8f0fe677dbc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to