usually that problem is resolved by creating a .htaccess file in the
directory were the css resides with AddType /text/css .css because otherwise
the server transfers the css as text/html.

In the case of django the problem may be also because the css file for the
admin panel is outside of the server "jurisdiction" in
../../django/contrib/admin/media/css. For this problem I also would like to
find a solution.

2009/6/23 kiwi <nicolacabi...@gmail.com>

>
> Hi, I've a problem with CSS of admin panel of Django when I deploy my
> web application on Apache2. Everything works, only Css of admin's
> panel do not works correctely... Someone can help me?
>
> Thanks
>
> This is my httpd.conf file....
>
>
> #WSGIDaemonProcess sds user=utente group=utente threads=25
> #WSGIProcessGroup utente
>
> #Module mod_python#
> #LoadModule python_module /usr/lib/apache2/modules/mod_python.so
>
> #Module mod_wsgi#
> LoadModule wsgi_module modules/mod_wsgi.so
>
> ServerName /etc/apache2/sites-available/default
>
> #Dico ad apache di prendere le configurazioni da un file esterno
> definito all'interno della mia applicazione
> #Include "/home/utente/www/python/sds/apache/django_wsgi.conf"
>
> #basta eseguire solo un alias per specificare al server che deve
> gestire i media
> Alias /media_admin/ /home/utente/www/python/sds/media/contrib/admin/
> media
> Alias /media /home/utente/www/python/sds/media/
>
> #permessi per la directory media
> <Directory /home/utente/www/python/sds/media>
> Order deny,allow
> Allow from all
> </Directory>
>
> #specifica file per il deploy
> WSGIScriptAlias / /home/utente/www/python/sds/apache/django.wsgi
>
> #permessi per la directory apache
> <Directory /home/utente/www/python/sds/apache>
> Order deny,allow
> Allow from all
> </Directory>
> >
>

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

Reply via email to