Re: Confusion about the new staticfiles contrib app

2011-07-08 Thread Gour-Gadadhara Dasa
On Tue, 25 Jan 2011 21:46:39 -0800 (PST) Brian Neal wrote: Hiya, > I'm trying to cut over my project to use the new staticfiles > application. I'm using the dev server with DEBUG = True on a recent > SVN trunk checkout. My STATIC_URL is '/static/' and my MEDIA_URL is >

Re: Confusion about the new staticfiles contrib app

2011-01-26 Thread Brian Neal
I can answer one of my own questions now: On Jan 25, 11:46 pm, Brian Neal wrote: ... > My second confusion point: > I am running the dev server with -Wall and I am seeing warnings: > PendingDeprecationWarning: The view at `django.views.static.serve` is > deprecated; use the

Re: Confusion about the new staticfiles contrib app

2011-01-26 Thread Brian Neal
On Jan 26, 8:46 am, Jonas Geiregat wrote: > > MEDIA_ROOT is the path to the directory where your files will live. > > MEDIA_URL is the URL the get to those files. > > So if MEDIA_ROOT='/home/you/media' > and MEDIA_URL='site-media/' > > Then if you want to view a file located

Re: Confusion about the new staticfiles contrib app

2011-01-26 Thread Jonas Geiregat
>> > > I don't understand this. One is a URL, the other is a file path. Why > would I set STATIC_URL = MEDIA_ROOT? Or did you make a typo and mean > MEDIA_URL? That might make more sense to me. MEDIA_ROOT is the path to the directory where your files will live. MEDIA_URL is the URL the get

Re: Confusion about the new staticfiles contrib app

2011-01-26 Thread Brian Neal
On Jan 26, 1:46 am, Jonas Geiregat wrote: > Op 26-jan-2011, om 06:46 heeft Brian Neal het volgende geschreven: > > > Hi - > > I'm trying to cut over my project to use the new staticfiles > > application. I'm using the dev server with DEBUG = True on a recent > > SVN trunk

Re: Confusion about the new staticfiles contrib app

2011-01-25 Thread Jonas Geiregat
Op 26-jan-2011, om 06:46 heeft Brian Neal het volgende geschreven: > Hi - > I'm trying to cut over my project to use the new staticfiles > application. I'm using the dev server with DEBUG = True on a recent > SVN trunk checkout. My STATIC_URL is '/static/' and my MEDIA_URL is >

Confusion about the new staticfiles contrib app

2011-01-25 Thread Brian Neal
Hi - I'm trying to cut over my project to use the new staticfiles application. I'm using the dev server with DEBUG = True on a recent SVN trunk checkout. My STATIC_URL is '/static/' and my MEDIA_URL is 'http://localhost:8000/media/' in this environment. My first confusion point: Maybe it was just