Когда я запускаю ./manage.py dbshell, я получаю следующее ошибка:
Код: Выделить всё
CommandError: You appear not to have the 'psql' program installed or on your path.
Код: Выделить всё
usage: manage.py dbshell [-h] [--version] [-v {0,1,2,3}] [--settings SETTINGS]
[--pythonpath PYTHONPATH] [--traceback] [--no-color]
[--database DATABASE]
manage.py dbshell: error: unrecognized arguments: psql
Мои настройки.py:
Код: Выделить всё
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'postgres',
'USER': 'postgres',
'PASSWORD': '********',
'HOST': '127.0.0.1',
'PORT': '5432',
}
}
Подробнее здесь: https://stackoverflow.com/questions/471 ... n-your-pat