Browse Source

Modified wait_for_db

master
marax 3 years ago
parent
commit
ee9b4b641c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app1/management/commands/wait_for_db.py

+ 1
- 1
app1/management/commands/wait_for_db.py View File

@ -18,7 +18,7 @@ class Command(BaseCommand):
db_up = False
while db_up is False:
try:
self.check(database=['default'])
self.check(databases=['default'])
db_up = True
except (Psycopg2OpError, OperationalError):
self.stdout.write('Database unavailable, waiting 1 sec...')


Loading…
Cancel
Save

Powered by TurnKey Linux.