Skip to content

Commit

Permalink
move manage.py up one level
Browse files Browse the repository at this point in the history
  • Loading branch information
mpdehaan committed Mar 13, 2013
1 parent 537b178 commit b5a1b2d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,37 @@ clean:
find . -type f -regex ".*\.py[co]$$" -delete

zero:
python acom/manage.py migrate main zero
python manage.py migrate main zero

setup:
ansible-playbook app_setup/setup.yml --verbose -i "127.0.0.1," -c local -e working_dir=`pwd`

syncdb:
# only run from initial setup
python acom/manage.py syncdb
python manage.py syncdb

runserver:
# run for testing the server
python acom/manage.py runserver
python manage.py runserver

# already done and should not have to happen again:
#
south_init:
PYTHON_PATH=./acom python acom/manage.py schemamigration main --initial
python manage.py schemamigration main --initial

dbchange:
# run this each time we make changes to the model
PYTHON_PATH=./acom python acom/manage.py schemamigration main --auto
python manage.py schemamigration main --auto

migrate:
# run this to apply changes to the model
PYTHON_PATH=./acom python acom/manage.py migrate
python manage.py migrate

dbshell:
# access database shell
# asks for password # PYTHON_PATH=./acom python acom/manage.py dbshell
sudo -u postgres psql -d acom

test:
PYTHON_PATH=./acom python acom/manage.py test main
python manage.py test main

4 changes: 2 additions & 2 deletions app_setup/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@
- name: sync django database
django_manage: >
command=syncdb
app_path=${working_dir}/acom
app_path=${working_dir}
- name: run south migrations
command: python ${working_dir}/acom/manage.py migrate main
command: python ${working_dir}/manage.py migrate main


File renamed without changes.

0 comments on commit b5a1b2d

Please sign in to comment.