Check out "How to handle static files" from this page:
https://docs.djangoproject.com/en/1.4/#the-development-process. Also note
that the links on this page can help answer a lot of the basic questions
about Django for you.
Django has a built-in app to handle static files, and cases such as thi
Ok to solve that thing quickly for now I just copied the whole JS file into
my HTML, another problem we're facing here is that I get the name of the
file dynamically like the following
swfobject.embedSWF("{{lecture.lectureFile}}", "myAlternativeContent",
"800", "600", "9.0.0", false, flashvars, p
Hi
You need understand the different between open the html directly in you
browser with open it from a web server.
Check your static file setting and load it, is it returning the js or not
On May 17, 2012 12:18 AM, "Marcin Tustin" wrote:
> Host your JS on your server, and use an absolute URL. T
Host your JS on your server, and use an absolute URL. This is what the
STATIC_URL setting is for.
On Wed, May 16, 2012 at 5:15 PM, Amr Abdel-wahab <
amr.mohamed.abdelwa...@gmail.com> wrote:
> Oh ok, then can you give me a solution?
>
> --
> You received this message because you are subscribed to
And I am sorry for bothering you.
--
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 m
Oh ok, then can you give me a solution?
--
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.
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,
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 grou
Man it's the same exact file, from the same directory and everything
--
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+
9 matches
Mail list logo