windows - Django Apache/mod_python Admin CSS not appearing with admin tables -


I have Windows XP / Django / Apache / mod_python that is working on the local host. All Parts Administrators are working with the exception of rendering CSS. The administrator works, but there is no HTML formatting I added to:

  settings.py INSTALLED_APPS 'django.contrib.admin', django.contrib import urls.py admin admin.autodiscover () (R '^ admin / (. *)', Admin.site.root), conf / http.conf & lt; Place "/" & gt; Sethandler python-program Python Path "['C: / Dijongo'] + sys.path" Python Handler Django. Honduras Madopehen SetAnv DJNG_STTIsGMODLeMiteite.Settings on the Python Debub & lt; / Location & gt; & Lt; Place "/ cpssite /" & gt; SetHandler Python-program PythonHandlerDeGengo.core handlers.modpythonSetEnv DJANGO_SETTINGS_MODULE myapplication.settings PythonInterpreter / myapplication on PythonDebug & lt; / Location & gt;  

Is I being stumped, should I add another code?

Is your ADMIN_MEDIA_PREFIX present? Is it different from MEDIA_URL? Did you include the following slash? Did Apache handle admin media properly?

The default Django configuration is in the admin media located on {Django install dir} / contrib / admin / media / media / in ADMIN_MEDIA_PREFIX are default so you need to add something to your Apache config:

  surname / media / / path / to / django / contrib / admin / media /  

this will tell Apache that mysite.com/media/css/whatever. Requests for css /path/to/django/contrib/admin/media/css/whatever.css means that your problem should be solved.


Comments