Why can't Django find my admin media files once I leave the built-in runserver?

Posted by Satoru.Logic on Stack Overflow See other posts from Stack Overflow or by Satoru.Logic
Published on 2010-06-13T14:18:04Z Indexed on 2010/06/13 14:22 UTC
Read the original article Hit count: 188

Filed under:
|
|

When I was using the built-in simple server, everything is OK, the admin interface is beautiful:

python manage.py runserver

However, when I try to serve my application using a wsgi server with django.core.handlers.wsgi.WSGIHandler, Django seems to forget where the admin media files is, and the admin page is not styled at all:

gunicorn_django

How did this happen?

© Stack Overflow or respective owner

Related posts about python

Related posts about django