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: 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

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 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-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