If CONN_DICT['HOST'] is an empty string dropdb and createdb return an error stating that the -h option requires a parameter. This bug may originate from settings.py on line 55, where it is stated that an empty string will default to localhost.
Further debug info:
python utils/reset.py
/usr/local/lib/python2.6/dist-packages/django/db/models/fields/subclassing.py:80: DeprecationWarning: A Field class whose get_db_prep_save method hasn't been updated to take a `connection` argument.
new_class = super(SubfieldBase, cls).__new__(cls, name, bases, attrs)
You have requested a reset of the database.
This will IRREVERSIBLY DESTROY all data currently in the 'indivo' database,
and return each table to its initial state.
Are you sure you want to do this?
Type 'yes' to continue, or 'no' to cancel: yes
RESETTING DATABASE...
Flushing the Database of existing data...
Database nonexistent or corrupted, or Database drop requeseted. Attempting to drop database...
/usr/lib/postgresql/8.4/bin/dropdb: option requires an argument -- 'h'
Try "dropdb --help" for more information.
Couldn't drop database. Probably because it didn't exist.
Creating the Database...
/usr/lib/postgresql/8.4/bin/createdb: option requires an argument -- 'h'
Try "createdb --help" for more information.
Couldn't create database. Database state likely corrupted. Exiting...
utils/reset.py:36-42
If CONN_DICT['HOST'] is an empty string dropdb and createdb return an error stating that the -h option requires a parameter. This bug may originate from settings.py on line 55, where it is stated that an empty string will default to localhost.
Further debug info: