Browse Source

Add database migration procedure

Fabs 11 years ago
parent
commit
b977d1513c
1 changed files with 15 additions and 1 deletions
  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
 ================