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

291
Views
Django: database 'postgres1' does not exist but it does actually

python manage.py migrate:

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

But I actually created the role and the database and granted, end everything is correct.

ok, then checking createdb postgres1

createdb: database creation failed: ERROR:  database "postgres1" already exists

how should I understand that? Default postgres postgres configuration works, but no one of created databases work.

EDIT: more traceback:

     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

Settings.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!