mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 15:09:32 -02:30
move manage.py up one level
This commit is contained in:
14
Makefile
14
Makefile
@@ -2,31 +2,31 @@ clean:
|
|||||||
find . -type f -regex ".*\.py[co]$$" -delete
|
find . -type f -regex ".*\.py[co]$$" -delete
|
||||||
|
|
||||||
zero:
|
zero:
|
||||||
python acom/manage.py migrate main zero
|
python manage.py migrate main zero
|
||||||
|
|
||||||
setup:
|
setup:
|
||||||
ansible-playbook app_setup/setup.yml --verbose -i "127.0.0.1," -c local -e working_dir=`pwd`
|
ansible-playbook app_setup/setup.yml --verbose -i "127.0.0.1," -c local -e working_dir=`pwd`
|
||||||
|
|
||||||
syncdb:
|
syncdb:
|
||||||
# only run from initial setup
|
# only run from initial setup
|
||||||
python acom/manage.py syncdb
|
python manage.py syncdb
|
||||||
|
|
||||||
runserver:
|
runserver:
|
||||||
# run for testing the server
|
# run for testing the server
|
||||||
python acom/manage.py runserver
|
python manage.py runserver
|
||||||
|
|
||||||
# already done and should not have to happen again:
|
# already done and should not have to happen again:
|
||||||
#
|
#
|
||||||
south_init:
|
south_init:
|
||||||
PYTHON_PATH=./acom python acom/manage.py schemamigration main --initial
|
python manage.py schemamigration main --initial
|
||||||
|
|
||||||
dbchange:
|
dbchange:
|
||||||
# run this each time we make changes to the model
|
# 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:
|
migrate:
|
||||||
# run this to apply changes to the model
|
# run this to apply changes to the model
|
||||||
PYTHON_PATH=./acom python acom/manage.py migrate
|
python manage.py migrate
|
||||||
|
|
||||||
dbshell:
|
dbshell:
|
||||||
# access database shell
|
# access database shell
|
||||||
@@ -34,5 +34,5 @@ dbshell:
|
|||||||
sudo -u postgres psql -d acom
|
sudo -u postgres psql -d acom
|
||||||
|
|
||||||
test:
|
test:
|
||||||
PYTHON_PATH=./acom python acom/manage.py test main
|
python manage.py test main
|
||||||
|
|
||||||
|
|||||||
@@ -59,9 +59,9 @@
|
|||||||
- name: sync django database
|
- name: sync django database
|
||||||
django_manage: >
|
django_manage: >
|
||||||
command=syncdb
|
command=syncdb
|
||||||
app_path=${working_dir}/acom
|
app_path=${working_dir}
|
||||||
|
|
||||||
- name: run south migrations
|
- name: run south migrations
|
||||||
command: python ${working_dir}/acom/manage.py migrate main
|
command: python ${working_dir}/manage.py migrate main
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user