aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlban Gruin2017-02-09 22:46:44 +0100
committerAlban Gruin2017-02-09 22:46:44 +0100
commit04b0d6f081627df7809f1fbd2890d7e93aef12bb (patch)
treecfd7288463ba0d9016cc1a268a1cf55697d158e2
parent48db9741a29f2a6b71b36e2fea38367a3e45e3a9 (diff)
En fait le signe $ c'est mieux je croisv0.5.0stable/0.5.z
-rw-r--r--README.md34
1 files changed, 17 insertions, 17 deletions
diff --git a/README.md b/README.md
index 055af7c..afa2b35 100644
--- a/README.md
+++ b/README.md
@@ -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.