Re: Using an external Server to serve Static files - Development Server

2013-08-22 Thread Nikolas Stevenson-Molnar
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

Re: Using an external Server to serve Static files - Development Server

2013-08-21 Thread Kelvin Wong
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

Re: Using an external Server to serve Static files - Development Server

2013-08-21 Thread Ideo Rex
{% 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

Re: Using an external Server to serve Static files - Development Server

2013-08-21 Thread Nikolas Stevenson-Molnar
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

Using an external Server to serve Static files - Development Server

2013-08-21 Thread Ideo Rex
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

Re: static files (development server)

2011-08-06 Thread veva...@yandex.ru
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

Re: static files (development server)

2011-08-06 Thread Shawn Milochik
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...

Re: static files (development server)

2011-08-06 Thread veva...@yandex.ru
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

Re: static files (development server)

2011-08-02 Thread veva...@yandex.ru
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.

Re: static files (development server)

2011-08-02 Thread Tom Evans
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

static files (development server)

2011-08-01 Thread veva...@yandex.ru
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