I've encountered such a problem, so maybe I can help. I solved that like this:
First, make sure you have the right permission to the folder 'media'. Then, #####setting.py#### MEDIA_ROOT='' #Use absolute path ADMIN_MEDIA_PAREFIX='' #'/media/', focus on the 2 slashs #####httpd.conf#### Alias /media /usr/local/lib/python2.6/site-packages/django/contrib/admin/media #end without slash <Directory "/usr/local/lib/python2.6/site-packages/django/contrib/admin/media"> #absolute path AllowOverride None Options None Order allow,deny Allow from all </Directory> <Location "/media/"> #2 slashs SetHandler None </Location> <LocationMatch "\.(jpg|gif|png|txt|ico|pdf|css|jpeg)$"> SetHandler None </LocationMatch> 2011/8/21 smith jack <thinke...@gmail.com> > face a strange problem, now i am using django.contrib.admin module > with its default page, but i cannot load css code now, so the web page > is ugly > what's wrong? > > -- > 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 > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.