vendredi 14 novembre 2014

python - Django ne sert pas admin des fichiers statiques (Apache, mod_wsgi) - Stack Overflow


I have a problem with admin static file (css, javascript, image)... I can't show this right template...


OS : Ubuntu 12.10 / Apache2 / mod_wsgi / Django 1.4


My apache config gile :


<VirtualHost *:80>
WSGIScriptAlias / /var/www/myhost.com/apache/buzzbal.wsgi

ServerName www.myhost.com
Alias /static /var/www/myhost.com/static/

<Directory /var/www/myhost.com/>
Order allow,deny
Allow from all
</Directory>
</VirtualHost>



Use:


Alias /static/ /var/www/myhost.com/static/

That is, trailing slash on both sub URL mount point as well as the target path.



I have a problem with admin static file (css, javascript, image)... I can't show this right template...


OS : Ubuntu 12.10 / Apache2 / mod_wsgi / Django 1.4


My apache config gile :


<VirtualHost *:80>
WSGIScriptAlias / /var/www/myhost.com/apache/buzzbal.wsgi

ServerName www.myhost.com
Alias /static /var/www/myhost.com/static/

<Directory /var/www/myhost.com/>
Order allow,deny
Allow from all
</Directory>
</VirtualHost>


Use:


Alias /static/ /var/www/myhost.com/static/

That is, trailing slash on both sub URL mount point as well as the target path.


0 commentaires:

Enregistrer un commentaire