Sunday, November 17, 2013

quick python/django/heroku reminders

heroku run python
heroku run python manage.py <some command>

e.g.

heroku run python manage.py sql polls
heroku run python manage.py syncdb

heroku run python manage.py shell

# shell stuff
d shell
>>> from polls.models import Poll, Choice

No comments:

Post a Comment

Please be considerate in what you say.