|
|
@ -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...') |
|
|
|