Try changing the first line to {% load static from staticfiles %}
_Nik
On 8/21/2013 6:27 PM, Ideo Rex wrote:
> {% load staticfiles %}
>
>
>
> 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
This is how I do it.
In settings.py:
STATIC_ROOT = '/home/user/app/site_media/static/' # Generated files here
from 'manage.py collectstatic'
STATIC_URL = 'http://static.example.com/static/'
In templates:
{% load staticfiles %}
...
Produces:
http://static.example.com/static/myapp/stylesh
{% load staticfiles %}
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 referencin
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 (basicall
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 wan
5 matches
Mail list logo