static/admin is populated via collectstatic now

This commit is contained in:
j 2012-06-13 00:01:27 +02:00
parent 21867e42f2
commit a96125044d
3 changed files with 1 additions and 6 deletions

View file

@ -23,7 +23,6 @@
ProxyPass /static ! ProxyPass /static !
ProxyPass /favicon.ico ! ProxyPass /favicon.ico !
ProxyPass /robots.txt ! ProxyPass /robots.txt !
ProxyPass /admin/media !
ProxyPass /data ! ProxyPass /data !
ProxyPass /.bzr ! ProxyPass /.bzr !
@ -32,7 +31,6 @@
Alias /static __PREFIX__/static Alias /static __PREFIX__/static
Alias /favicon.ico __PREFIX__/static/favicon.ico Alias /favicon.ico __PREFIX__/static/favicon.ico
Alias /data __PREFIX__/data Alias /data __PREFIX__/data
Alias /static/admin __PREFIX__/django/django/contrib/admin
ProxyPreserveHost On ProxyPreserveHost On
ProxyPass / http://127.0.0.1:2620/ ProxyPass / http://127.0.0.1:2620/

View file

@ -24,10 +24,6 @@ server {
root __PREFIX__/static; root __PREFIX__/static;
} }
location /static/admin/ {
root __PREFIX__/django/django/contrib/admin;
autoindex on;
}
location /static/ { location /static/ {
root __PREFIX__; root __PREFIX__;
autoindex on; autoindex on;

View file

@ -54,6 +54,7 @@ echo "UPDATE django_site SET domain = '$HOST.local', name = '$HOST.local' WHERE
mkdir /srv/pandora/data mkdir /srv/pandora/data
chown -R pandora:pandora /srv/pandora chown -R pandora:pandora /srv/pandora
sudo -u pandora python manage.py update_static sudo -u pandora python manage.py update_static
sudo -u pandora python manage.py collectstatic -l --noinput
cp /srv/pandora/etc/init/* /etc/init/ cp /srv/pandora/etc/init/* /etc/init/