diff --git a/backend/apps/core/db.py b/backend/apps/core/db.py index 6b85cacd..1063ebb4 100644 --- a/backend/apps/core/db.py +++ b/backend/apps/core/db.py @@ -17,7 +17,7 @@ def create_database(database_name=None): dbname="postgres", user="postgres", host=os.environ.get("POSTGRES_SERVICE_HOST", "localhost"), - password=from_secret() # os.environ.get("POSTGRES_PASSWORD", "postgres") + password=from_secret(), # os.environ.get("POSTGRES_PASSWORD", "postgres") ) # https://www.psycopg.org/docs/connection.html#connection.set_isolation_level diff --git a/backend/apps/core/management/commands/create_database.py b/backend/apps/core/management/commands/create_database.py index a69bae8e..fbfb87bf 100644 --- a/backend/apps/core/management/commands/create_database.py +++ b/backend/apps/core/management/commands/create_database.py @@ -10,14 +10,13 @@ class Command(BaseCommand): - def add_arguments(self, parser): parser.add_argument( - '--database_name', - action='store', - dest='database_name', + "--database_name", + action="store", + dest="database_name", default=None, - help='Optional database name argument', + help="Optional database name argument", ) def handle(self, *args, **options):