Change the way we sync, add notes about superuser setup.

This commit is contained in:
Michael DeHaan 2013-03-13 17:20:50 -04:00
parent ee4160af93
commit 273b447250
3 changed files with 8 additions and 3 deletions

View File

@ -15,6 +15,9 @@ setup:
# use ansible to ansible ansible commander locally
ansible-playbook app_setup/setup.yml --verbose -i "127.0.0.1," -c local -e working_dir=`pwd`
adduser:
python manage.py createsuperuser
syncdb:
# only run from initial setup
python manage.py syncdb

View File

@ -35,6 +35,10 @@ This playbook will:
You may run this setup step again as needed as many times
as you like.
Before you login, you must also run "make adduser" to create
a superuser. This will allow you to login to the app. There
is no default user.
Test the server
===============

View File

@ -50,9 +50,7 @@
template: src=templates/local_settings.py.j2 dest=${working_dir}/lib/settings/local_settings.py
- name: sync django database
django_manage: >
command=syncdb
app_path=${working_dir}
command: python ${working_dir}/manage.py syncdb --noinput
- name: run south migrations
command: python ${working_dir}/manage.py migrate main