>
> So I've discovered that I can get the admin page to show up if I add '/
> System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/
> site-packages/django/contrib/admin/templates' to TEMPLATE_DIRS in the
> settings.py file for my project (for some reason this doesn't work in
> global_settings.py).

Looks almost like your TEMPLATE_LOADERS in settings.py doesn't have
the app loader enabled.  Check that.

> But admin shows up with no styling. Looks like my "MEDIA_ROOT" is
> wrong? I tried entering '/System/Library/Frameworks/Python.framework/
> Versions/2.5/lib/python2.5/site-packages/django/contrib/admin/media',
> but that doesn't work...and how am I to know the MEDIA_URL? Don't I
> have to map a URL or something? Is this stuff just not covered in the
> tutorial?

You need to set your ADMIN_MEDIA_PREFIX
(http://www.djangoproject.com/documentation/settings/#admin-media-prefix)
appropriately, as well as make sure it doesn't collide with your own
MEDIA_URL.

If you're using the built-in webserver (runserver) it will handle
mapping based on that ADMIN_MEDIA_PREFIX.

For serving your own static media, read though this:
http://www.djangoproject.com/documentation/static_files/

Michael Trier
blog.michaeltrier.com

--~--~---------~--~----~------------~-------~--~----~
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