Thanks so much ;)

Its working :)

--
Luis


On Nov 15, 8:10 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Sat, Nov 15, 2008 at 10:49 AM, Luis Goncalves
> <[EMAIL PROTECTED]>wrote:
>
>
>
>
>
> > Hello guys I need your help in here.
>
> > Sorry I am new in Django and I am having a problem, my css and jpgs
> > are missing.
>
> > I will write everything what i have and then maybe someone could give
> > me a hint :)
>
> > My settings.py:
> > MEDIA_ROOT = '/home/lgoncalves/Arquivos/MyVitaminesShop/media/'
> > MEDIA_URL = 'http://127.0.0.1:8000/media/'
> > ADMIN_MEDIA_PREFIX = '/media/'
>
> > My urls.py:
> > (r'^media/(?P<path>.*)', 'django.views.static.serve',{'document_root':
> > 'settings.MEDIA_ROOT'}),
>
> > And an example of base.html:
> > <link rel="stylesheet" href="http://127.0.0.1:8000/media/
> > mm_health_nutr.css" type="text/css" />
> > <img src="http://127.0.0.1:8000/media/picture.jpg"; alt="Header image"
> > width="382" height="101" border="0" />
>
> You've essentially got the same value for MEDIA_URL and ADMIN_MEDIA_PREFIX,
> which doesn't work 
> (see:http://docs.djangoproject.com/en/dev/ref/settings/#admin-media-prefix).  
> The
> development server has a built-in media server for admin which picks off
> anything starting with ADMIN_MEDIA_PREFIX and serves up the admin media
> files.  You've set things up so your own media files have that same prefix
> (thehttp://127.0.0.1:8000just serves to route it to a server, once at that
> server all that matters is what follows, in your case '/media/', which is
> the same as your ADMIN_MEDIA_PREFIX), so the request for your CSS, etc. are
> going to the built-in admin media server (which can't find them since it's
> looking among the admin media), not the static server.
>
> Karen
--~--~---------~--~----~------------~-------~--~----~
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