Hi May. You'll need to make the admin media accessible from <Location "/ media"> and set ADMIN_MEDIA_PREFIX correctly.
For instance, I keep my admin media folder in my media folder. I therefore have: ADMIN_MEDIA_PREFIX = 'http://myserver/media/admin/' As for the urlconf error, just go back to (r'^admin/(.*)', admin.site.root). This only deals with dynamic content, not media files. HTH, Will On Jan 23, 9:29 pm, May <adles...@gmail.com> wrote: > Hello, > > I changed theURLfrom this: > (r'^admin/(.*)', admin.site.root) (this works, but no CSS) > > to this: > (r'^admin/',include('django.contrib.admin.urls')), > > I received this error: > No module named urls > > May > ADMIN_MEDIA_PREFIX = 'http://map1.zoo.ox.ac.uk/media/admin/' > On Jan 23, 12:15 pm, Austin Gabel <aga...@gmail.com> wrote: > > > What do you have for MEDIA_ROOT, MEDIA_URL, and ADMIN_MEDIA_PREFIX in your > > settings file? > > > On Fri, Jan 23, 2009 at 12:50 PM, May <adles...@gmail.com> wrote: > > > > Hello, > > > > I have windows, python 2.5, mod python and apache 2.2 working. > > > However, when accessing the admin pages the admin CSS does not > > > appear. I tried creating a subdir admin under my templates folder and > > > copied the base_site.html to it, but I still can't get the css to > > > work. > > > > My settings file: > > > > TEMPLATE_DIRS: > > > 'C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/ > > > templates', > > > > INSTALLED_APPS: > > > 'django.contrib.admin', > > > >URLfile: > > > (r'^admin/(.*)', admin.site.root), > > > > Is there something I should be adding to the http.conf file? > > > > Thanks for any help, > > > > May > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---