Projet

Général

Profil

« Précédent | Suivant » 

Révision 79944bcc

Ajouté par Thomas Noël il y a plus de 9 ans

use collectstatic

Voir les différences:

usr/local/univnautes/sp/rc.sh
15 15

  
16 16
function start() {
17 17
    syncdb
18
    python manage.py collectstatic -v0 -l --noinput | logger -p local4.info -t sp/load-data
18 19
    python manage.py runfcgi socket=/tmp/univnautes-$PROJECT-fcgi.sock method=prefork daemonize=true pidfile=/var/run/univnautes-$PROJECT-fcgi.pid
19 20
}
20 21

  
usr/local/univnautes/sp/sp/settings.py
64 64
# Don't put anything in this directory yourself; store your static files
65 65
# in apps' "static/" subdirectories and in STATICFILES_DIRS.
66 66
# Example: "/var/www/example.com/static/"
67
STATIC_ROOT = ''
67
STATIC_ROOT = os.path.join(PROJECT_PATH, 'www', 'static')
68 68

  
69 69
# URL prefix for static files.
70 70
# Example: "http://example.com/static/", "http://static.example.com/"

Formats disponibles : Unified diff