A sample Getting Things Done (GTD) app using MySQL and the Django admin
interface. To create projects, actions, context or make any modifications, use
the Django admin URL at http://<app-url>/admin/
.
pypm install -r requirements.txt
python manage.py syncdb
python manage.py migrate
python manager.py runserver
Push to the cloud, and then initialize the database:
stackato push -n
After deploying run the following to create an admin user:
stackato run --application <app_name> python manage.py createsuperuser
Visit http://gtd.stackato.local/ to see the list of tasks. Visit http://gtd.stackato.local/admin/ to modify tasks, projects and contexts.
To use mysql instead of postgresql on production, you need to make only a few changes before pushing (or updating) your app:
- In manifest.yml, replace
mysql
withpostgresql
under services. - In manifest.yml, replace
mysql-python
withpsycopg2
under requirements.