Once again: You have a relative url for your JS. This is expanded to a different location depending on where it is served from.
This means that in one case, your browser can find the file on the filesystem, but in the other, it tries to pull it from your server. On Wed, May 16, 2012 at 5:03 PM, Amr Abdel-wahab < amr.mohamed.abdelwa...@gmail.com> wrote: > It just doesn't work if rendered but the same exact file does work if > I opened it in a browser view > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Marcin Tustin Tel: 07773 787 105 -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.