I'm new to Django, and I'm trying to learn how to use it. I've hit a brick wall trying to launch the admin site.
I'm working out of /opt/django/mysite.com/proj1
I'm just trying to use the built-in webserver, so python manage.py runserver
The admin page will load, but it's missing base.css and dashboard.css.
These files are located in /usr/lib/python2.7/site-packages/django/contrib/admin/media/
Seeing that it seems like ADMIN_MEDIA_PREFIX typically needs to be set, I've tried
ADMIN_MEDIA_PREFIX = '/usr/lib/python2.7/site-packages/django/contrib/admin/media/'
to no effect.
Could someone help me fix this problem?
Thanks,
Edit: The GET requests where I'm seeing errors are http://localhost:8000/admin/media/css/base.css http://localhost:8000/admin/media/css/dashboard.css
ADMIN_MEDIA_PREFIX
should be URL prefix, not the actual path. Are you using 1.3 or trunk? - jholsterADMIN_MEDIA_PREFIX = '/static/admin/'
. Did you try that? - jholstermanage.py --adminmedia
, but again, the defaults should work. - jholster