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
On 6 авг, 18:48, Shawn Milochik wrote:
> Are you running collectstatic after making those changes?
After Your advice I did so without any success. The details are:
I use django 1.3, Windows on a local computer.
1) I removed 'products' and 'thumbnails' subfolders from 'image'
folder and placed an i
Are you running collectstatic after making those changes?
--
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...
I have got working test project but it works very strange.
http://www.w3.org/1999/xhtml"; xml:lang="en">
What is strange: if I rename an image file or any directory and change
a reference accordingly, an image disappears from the page.
--
You received this message because you are s
Tom,
I added
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
and
if settings.DEBUG:
urlpatterns += staticfiles_urlpatterns()
to urlconf, but didn't get any result.
Vladimir
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
On Tue, Aug 2, 2011 at 5:19 AM, veva...@yandex.ru wrote:
> I see I don't understand how can I use static files using the
> development server. I saw several answers to this question of other
> people but they are too breaf for me. I think I follow advices but
> without any result.
> Books on Djang
I see I don't understand how can I use static files using the
development server. I saw several answers to this question of other
people but they are too breaf for me. I think I follow advices but
without any result.
Books on Django I have don't explain this problem. Be so kind to
explain me.
My lo
11 matches
Mail list logo