igor Guerrero a écrit :

> Django dont serve media files, that is the job of the production server but
> if yo are using the development server: you can try this:
>
> http://www.djangoproject.com/documentation/static_files/
>
> On 11/13/06, Jean-Luc <[EMAIL PROTECTED]> wrote:
> >
> >
> > Jay Parlar a écrit :
> >
> > > On 11/13/06, Jean-Luc <[EMAIL PROTECTED]> wrote:
> > > >
> > > > hi Django folks
> > > >
> > > > newbie question, style sheet not found
> > > >
> > > > my base.html
> > > > <head>
> > > >   <meta http-equiv="Content-Type" content="text/html;
> > > > charset=iso-8859-1"/>
> > > >   <link rel="stylesheet" href="media/css/budget.css" title="main.css"
> > > > type="text/css" media="screen"/>
> > >
> > > That's your problem right there, you have the 'media' folder as a
> > > relative URL. Look at the request, it's trying to get:
> > >
> > > GET /budget/2006/08/media/css/budget.css
> > >
> > > which isn't what you want. Your HTML should probably be:
> > >
> > >  <link rel="stylesheet" href="/media/css/budget.css" title="main.css"
> > >  type="text/css" media="screen"/>
> > >
> > > (ie. I added a '/' in front of 'media')
> > >
> > > Jay P.
> >
> > Sorry Jay
> > That don't work
> > I have the same GET
> > GET /budget/2006/08/media/css/budget.css
> >
> > I think, bat is not sure that GET should be
> > GET path_to_media/media/css/budget.css
> >
> > path_to_media = basedir from urlpatterns
> >
> > Thank You Jay
> > jlT
> >
> >
> > >
> >

I use that doc :
"
With that said, Django does support static files during development.
Use the view django.views.static.serve to serve media files.
"
but it does not work
I probably mistake, but don't know where 

Thank you Igor
jlT


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to