Really... As Daniel said, I can't see any problem... only refer your static
into your templates like:
Your javascript URL:
http://commondatastorage.googleapis.com/static/media/node.js
On template:
(...)
<head>
(...)
<script type="text/javascript" src="static/media/node.js></script>
(...)
</head>
(...)

Now, if you're using django dev server on your localhost only to test your
app, you can use django.views.static.serve.

2010/10/8 Daniel Roseman <dan...@roseman.org.uk>

> On Oct 8, 9:37 am, Hudar <hudars...@gmail.com> wrote:
> > Hi,
> >
> > Just wondering how we could server static file if we have our files
> > hosted in cdn.
> >
> > I been trying several way, but nothings work.
> >
> > I have the files in let say ;
> http://commondatastorage.googleapis.com/static/media/node.js
> >
> > As far as I know, all the example out there use static files reside in
> > the same server. Any help will be much appreciated.
>
> I'm having real trouble understanding what your confusion is. If your
> files are on an external URL, then you refer to that URL in your
> templates. What's the difficulty?
> --
> DR.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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.

Reply via email to