Skip to content

Commit

Permalink
fix: prevent unwanted migration and mongo connection
Browse files Browse the repository at this point in the history
Change-Id: I81721a352ad659c521a57e2712bae010f0f8d64e
  • Loading branch information
Guillaume-sousa committed Jan 12, 2022
1 parent 6cf062e commit d6901f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mdcs/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
}
}

DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
DEFAULT_AUTO_FIELD = "django.db.models.AutoField"

MONGO_HOST = os.environ["MONGO_HOST"] if "MONGO_HOST" in os.environ else ""
MONGO_PORT = os.environ["MONGO_PORT"] if "MONGO_PORT" in os.environ else "27017"
Expand All @@ -58,7 +58,7 @@
MONGODB_URI = (
f"mongodb://{MONGO_USER}:{MONGO_PASS}@{MONGO_HOST}:{MONGO_PORT}/{MONGO_DB}"
)
connect(MONGO_DB, host=MONGODB_URI)
connect(host=MONGODB_URI, connect=False)


BROKER_TRANSPORT_OPTIONS = {
Expand Down

0 comments on commit d6901f8

Please sign in to comment.