Rostyslav Bryzgunov avatar Rostyslav Bryzgunov committed 0155def

Scripts clean-up

Comments (0)

Files changed (7)

template/source/scripts/compile_messages.bat

-cd ..
-cd apps/website
+cd ../apps/web
 echo off
 echo --------------------------------------------------
 echo Compile i18n messages

template/source/scripts/dump_db.bat

 cd ..
 echo off
 echo --------------------------------------------------
-echo Dump data in json format
+echo Dump whole project data in json format
 echo --------------------------------------------------
-python manage.py dumpdata --format=json --indent=4 > apps/website/fixtures/website.json
+python manage.py dumpdata --format=json --indent=4 > db/all.json

template/source/scripts/load_db.bat

 echo --------------------------------------------------
 echo Load saved dump into db
 echo --------------------------------------------------
-REM python manage.py reset each_our_app
-python manage.py loaddata website.json
+python manage.py reset
+python manage.py reset --noinput auth contenttypes sites sessions web
+python manage.py loaddata db/all.json

template/source/scripts/make_messages.bat

-cd ..
-cd apps/website
+cd ../apps/web
 echo off
 echo --------------------------------------------------
 echo Make i18n messages
 echo --------------------------------------------------
-python ../../manage.py makemessages -l ru
 python ../../manage.py makemessages -l en
-python ../../manage.py makemessages -l uk
 

template/source/scripts/migrate.bat

 echo --------------------------------------------------
 echo Migrate database
 echo --------------------------------------------------
-python manage.py schemamigration website --auto --settings=settings
-python manage.py migrate website --settings=settings
+python manage.py schemamigration web --auto
+python manage.py migrate web

template/source/scripts/south_auto.bat

 cd ..
 echo off
 echo --------------------------------------------------
-echo Create migrations if they are 
+echo Create migrations
 echo --------------------------------------------------
-python manage.py schemamigration website --auto
+python manage.py schemamigration web --auto

template/source/scripts/south_init.bat

 cd ..
 echo off
 echo --------------------------------------------------
-echo Create south managed database (only at project start)
+echo Init South control for not south-controlled app
 echo --------------------------------------------------
-python manage.py schemamigration website --initial
+python manage.py schemamigration web --initial
 python manage.py syncdb --migrate
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.