{% load staticfiles %}
<link rel="stylesheet" type="text/css" href="{% static
'livestream/css/style.css' %}" />
This is just for my css file (there are other categories under lifestream.
server: https://my.site.com/DJStatic/static/livestream/css/style.css
On Wednesday, August 21, 2013 6:18:37 PM UTC-7, Nikolas Stevenson-Molnar
wrote:
>
> That should work... how are you referencing your static files from your
> templates?
>
> _Nik
>
> On 8/21/2013 6:09 PM, Ideo Rex wrote:
> > Hello,
> > I have a different request that I couldn't find anywhere else on the
> > internet. I'm an intern who has built a Django Web Application for my
> > project (basically a large experiment). The cite will never leave
> > development, but I'm holding my static files and templates on another
> > server. I want Django to look for static files on this website.
> >
> > Currently my project is 'livestream', in livestream there are two sub
> > directories: 'templates' & 'static'
> > On my server I have https://my.site.com/DJStatic/ - inside of DJStatic
> > are two sub directories: 'templates' & 'static'
> >
> > How do I tell django to look in the server for the static files rather
> > than the local directory?
> >
> >
> > Tests:
> > I have removed the local static files and set STATIC_URL :
> > https://my.site.com/DJStatic/static/, but it doesn't work this way.
> > Any Ideas on how to fix this?
> >
> > Thanks
> > --
> > 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 [email protected] <javascript:>.
> > To post to this group, send email to
> > [email protected]<javascript:>.
>
> > Visit this group at http://groups.google.com/group/django-users.
> > For more options, visit https://groups.google.com/groups/opt_out.
>
>
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.