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
> 'http://localhost:8000/med
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 path `django.contrib.s
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 at /home/you/media/thi
>>
>
> 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 t
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 checkout. My STATIC_URL i
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
> 'http://localhost:
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
7 matches
Mail list logo