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