diff options
| author | Alban Gruin | 2017-02-09 22:46:02 +0100 | 
|---|---|---|
| committer | Alban Gruin | 2017-02-09 22:46:02 +0100 | 
| commit | 48db9741a29f2a6b71b36e2fea38367a3e45e3a9 (patch) | |
| tree | 4e8b586fac2bf0c25385f1b112dfda797fd82408 /README.md | |
| parent | b7cf872e3259de08afdbc994ebf259ae8cdf5617 (diff) | |
Ajout d'un symbole pour représenter le shell
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 34 | 
1 files changed, 17 insertions, 17 deletions
| @@ -24,49 +24,49 @@ Il est préférable d'utiliser un environnement virtuel, mais ce n'est pas oblig  #### Création de l'environnement virtuel  Déplacez-vous dans le répertoire souhaité, installez l'environnement virtuel, et activez-le : -> virtualenv -p python3 celcatsanitizer +> % virtualenv -p python3 celcatsanitizer -> cd celcatsanitizer +> % cd celcatsanitizer -> source bin/activate +> % source bin/activate  Il est possible que votre version de pip soit ancienne. Si vous le souhaitez, mettez ce programme à jour : -> pip install --upgrade pip +> % pip install --upgrade pip  Notez que cette étape n'est pas obligatoire  #### Installation des dépendances -> pip install requests +> % pip install requests -> pip install django=="1.10.*" +> % pip install django=="1.10.*" -> pip install beautiful4 +> % pip install beautiful4  Si vous utilisez PostgreSQL, vous allez avoir besoin du driver psycopg2 : -> pip install psycopg2 +> % pip install psycopg2  SQLite n'a pas besoin de driver.  #### Création du répertoire Django -> django-admin startproject celcatsanitizer +> % django-admin startproject celcatsanitizer -> cd celcatsanitizer +> % cd celcatsanitizer  #### Récupération des sources de celcatsanitizer -> git clone https://git.pa1ch.fr/alban/celcatsanitizer.git edt +> % git clone https://git.pa1ch.fr/alban/celcatsanitizer.git edt  Pour la production, il est recommandé d'utiliser une version stable, accessibles à travers les tags git : -> cd edt +> % cd edt -> git checkout v0.4.0 +> % git checkout v0.4.0 -> cd .. +> % cd ..  #### Configuration de Django  Dans le fichier celcatsanitizer/settings.py, vous devrez renseigner plusieurs informations. @@ -102,13 +102,13 @@ Dans le fichier celcatsanitizer/urls.py, importez la fonction django.conf.urls.i  ##### Génération de la base de données  Vous avez besoin de générer les migrations de celcatsanitizer, puis appliquez-les : -> ./manage.py makemigrations edt +> % ./manage.py makemigrations edt -> ./manage.py migrate +> % ./manage.py migrate  ### Lancement de celcatsanitizer  Si vous êtes en mode de débuggage, lancez le serveur de cette manière : -> ./manage.py runserver +> % ./manage.py runserver  Si vous êtes en production, il n'est pas recommandé d'utiliser ce serveur. Exécutez Django avec le module mod_wsgi d'Apache, ou avec le serveur gunicorn, derrière un serveur nginx. | 
