python manage.py migrate :
django.db.utils.OperationalError: FATAL: database "postgres1" does not existPero en realidad creé el rol y la base de datos y concedí que todo fuera correcto.
ok, luego verificando createdb postgres1
createdb: database creation failed: ERROR: database "postgres1" already existscomo debo entender eso? La configuración predeterminada de postgres funciona, pero ninguna de las bases de datos creadas funciona.
EDITAR: más rastreo:
raise value.with_traceback(tb) File "/Users/TheKotik/tick-tock/denv/lib/python3.5/site-packages/django/db/backends/base/base.py", line 130, in ensure_connection self.connect() File "/Users/TheKotik/tick-tock/denv/lib/python3.5/site-packages/django/db/backends/base/base.py", line 119, in connect self.connection = self.get_new_connection(conn_params) File "/Users/TheKotik/tick-tock/denv/lib/python3.5/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 176, in get_new_connection connection = Database.connect(**conn_params) File "/Users/TheKotik/tick-tock/denv/lib/python3.5/site-packages/psycopg2/__init__.py", line 130, in connect conn = _connect(dsn, connection_factory=connection_factory, **kwasync) django.db.utils.OperationalError: FATAL: database "postgres1" does not existConfiguración.py:
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'postgres1', 'USER':'postgres', 'PASSWORD':'', 'HOST': 'localhost', 'PORT': '', } }