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


Thanks so much for your help.

Best Regards,

Luis

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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