1
0
Parcourir la source

Add database migration procedure

Fabs il y a 11 ans
Parent
commit
b977d1513c
1 fichiers modifiés avec 15 ajouts et 1 suppressions
  1. 15 1
      README.md

+ 15 - 1
README.md

@@ -29,7 +29,11 @@ the project):
 
 
 Install dependencies. On Debian, you will probably need the
-`python-dev`, `libldap-dev` and `libsasl2-dev` packages. Then run:
+`python-dev`, `python-pip`, `libldap-dev` and `libsasl2-dev` packages.
+
+sudo apt-get install python-dev python-pip libldap2-dev libsasl2-dev
+
+Then run:
 
   pip install -r requirements.txt
 
@@ -45,6 +49,16 @@ settings:
     echo 'DEBUG = TEMPLATE_DEBUG = True' >> coin/settings_local.py
 
 
+To sync database, the first time run :
+
+python manage.py syncdb
+python manage.py migrate
+
+Then at each code update :
+
+python manage.py migrate
+
+
 More information
 ================