Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A fork of http://code.google.com/p/django-gtd/ to be deployed to Stackato

tree: 3a72ace773

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 gtd
Octocat-spinner-32 static
Octocat-spinner-32 templates
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 __init__.py
Octocat-spinner-32 manage.py
Octocat-spinner-32 requirements.txt
Octocat-spinner-32 settings.py
Octocat-spinner-32 stackato.yml
Octocat-spinner-32 urls.py
Octocat-spinner-32 wsgi.py
README.md

Django GTD

A sample Getting Things Done (GTD) app using PostgreSQL and the Django admin interface. To create projects, actions, context or make any modifications, use the Django admin URL at http://gtd.stackato.local/admin/.

Local development

pypm install -r requirements.txt
python manage.py syncdb
python manage.py migrate
python manager.py runserver

Deploying to Stackato

First, change the admin password in stackato.yml to a non-default value:

vi stackato.yml  # replace 'secret123' with your password

Then, push to the cloud:

stackato push -n

Visit http://gtd.stackato.local/ to see the list of tasks. Visit http://gtd.stackato.local/admin/ to modify tasks, projects and contexts.

Want to use MySQL?

To use mysql instead of postgresql on production, you need to make only a few changes before pushing (or updating) your app:

  • In requirements.txt, replace psycopg2 with mysql-python
  • In settings.py, replace django.db.backends.postgresql_psycopg2 with django.db.backends.mysql
  • In settings.py, replace vcap_services['postgresql-8.4'][0] with vcap_services['mysql-5.1'][0]
  • In stackato.yml, replace postgresql with `mysql.
Something went wrong with that request. Please try again.