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 # 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` ansible-playbook app_setup/setup.yml --verbose -i "127.0.0.1," -c local -e working_dir=`pwd`
adduser:
python manage.py createsuperuser
syncdb: syncdb:
# only run from initial setup # only run from initial setup
python manage.py syncdb 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 You may run this setup step again as needed as many times
as you like. 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 Test the server
=============== ===============

View File

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