https://github.com/remche/kvalitet
https://github.com/remche/kvalitet
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/remche/kvalitet
- Owner: remche
- License: gpl-3.0
- Created: 2017-10-16T12:10:16.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-16T12:25:39.000Z (over 8 years ago)
- Last Synced: 2025-01-13T18:34:34.744Z (over 1 year ago)
- Language: Python
- Size: 721 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Installation
## Dépendances
aptitude install \
subversion \
libjs-twitter-bootstrap libjs-jquery-ui libjs-jquery-ui-theme-smoothness \
django-ajax-selects \
python-django-celery \
python-redis redis-server \
python-pylibmc \
python-pip \
python-psycopg2 \
python-ldap python-django-auth-ldap \
python-twisted \
python-pisa \
python-django-djapian
# (ou python-memcache, ms moins efficace) \
# python-django-debug-toolbar \
# python-django-extensions
aptitude install python-django-dajax python-django-dajaxice -t testing
pip install --upgrade django-crispy-forms
## Subversion
svn co https://forge.3sr-grenoble.fr/repos/kvalitet/trunk --username=rcailletaud
# Configuration
## pgsql
adduser kvalitet
createuser mypguser
createdb -O mypguser mypgdatabase
Optimizing PostgreSQL’s configuration (https://docs.djangoproject.com/en/dev/ref/databases/)
Django needs the following parameters for its database connections:
client_encoding: 'UTF8',
default_transaction_isolation: 'read committed',
timezone: 'UTC' when USE_TZ is True, value of TIME_ZONE otherwise.
Configurer la base dans kvalitet/settings.py
## Dev
export DEVELOPMENT=1
## Static et import
(configurer base : south)
./manage.py syncdb
./manage.py migrate
./manage.py collectstatic
./manage.py importusers
./manage.py loaddata services tutelles direction
./manage.py loaddata batiments salles-e salles-i
./manage.py loaddata nomenclatures
./manage.py importxlab fichier_xlab.txt
./manage.py importentites fichier_entites.txt
./manage.py importfournisseurs fichier_fournisseurs.txt
./manage.py importlignes fichier_lignes.txt
## Redis
pour debug :
./manage.py celeryd -E -l INFO
## Gunicorn et Nginx
gunicron nginx supervisor
voir logrotate
TODO