diff options
author | ashwinishinde | 2015-07-13 16:09:55 +0530 |
---|---|---|
committer | ashwinishinde | 2015-07-13 16:09:55 +0530 |
commit | a2059ac649fbbd14c97e6a15c129e672616077b0 (patch) | |
tree | 70f042b7bd0cfa12944ebbcbe2fdd8a2f93fa955 | |
parent | 4bf2d594b8ffbbaa103c4bdcdf3485fcad32be47 (diff) | |
parent | dfa131dc7a17e17308c2c831104149887e45e8bf (diff) | |
download | FOSSEE-Forum-a2059ac649fbbd14c97e6a15c129e672616077b0.tar.gz FOSSEE-Forum-a2059ac649fbbd14c97e6a15c129e672616077b0.tar.bz2 FOSSEE-Forum-a2059ac649fbbd14c97e6a15c129e672616077b0.zip |
Merge branch 'fossee-forum' of https://github.com/FOSSEE/spoken-tutorial-forums into fossee-forum
-rw-r--r-- | ReadMe.rst | 44 | ||||
-rw-r--r-- | forums/settings.py | 4 |
2 files changed, 46 insertions, 2 deletions
@@ -100,6 +100,50 @@ Usage python manage.py runserver +**Not for first time users and only for developers** +Migration +---------- +(How to add a new model field to an existing table using South without having to drop a table) + +- Enter into virual environment + +- install south :: + + pip install south + +- Add south to INSTALLED_APPS in settings.py + +- Change the directory to the `spoken-tutorial-forums/` project using the command :: + + cd /path/to/spoken-tutorial-forums + +- Run below command to create south_migrationhistory table :: + + python manage.py syncdb + +- Create the initial migration with South :: + + python manage.py schemamigration --initial website + +- Apply it as a fake migration :: + + python manage.py migrate website --fake + +- Make the change to the website model, in this case :: + + git pull + +- Create a migration for your new change :: + + python manage.py schemamigration --auto website + +- Apply new migration :: + + python manage.py migrate website + + + + Contributing ------------ diff --git a/forums/settings.py b/forums/settings.py index 3bd2cad..6fc18f0 100644 --- a/forums/settings.py +++ b/forums/settings.py @@ -142,8 +142,8 @@ INSTALLED_APPS = ( 'compressor', 'debug_toolbar', 'captcha', - 'googlesearch', - 'gtm', + 'south' + #'migrate_spoken', ) |