citmusa
10/23/2014 - 5:25 AM

delete heroku - postgress table

delete heroku - postgress table

python manage.py shell:

>>> sql = '''drop table mytable cascade;
...          drop table mytable2; '''
>>> 
>>> from django.db import connections, transaction
>>> cursor = connections['default'].cursor()
>>> cursor.execute(sql)