Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

294
Views
Django: la base de datos 'postgres1' no existe pero en realidad sí

python manage.py migrate :

 django.db.utils.OperationalError: FATAL: database "postgres1" does not exist

Pero 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 exists

como 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 exist

Configuración.py:

 DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'postgres1', 'USER':'postgres', 'PASSWORD':'', 'HOST': 'localhost', 'PORT': '', } }
over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!