Skip to content

Commit

Permalink
Shift to use MARIADB_ patterns in lieu of MYSQL_
Browse files Browse the repository at this point in the history
Signed-off-by: Steven K <[email protected]>
  • Loading branch information
rh0dium committed Jun 20, 2023
1 parent ee54378 commit 8502faf
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 10 deletions.
17 changes: 17 additions & 0 deletions .idea/aws.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions demo_app/demo_app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
DEBUG=(bool, False),
DEBUG_LEVEL=(int, logging.WARNING),
SECRET_KEY=(str, "SECRET_KEY"),
MYSQL_DATABASE=(str, "db"),
MYSQL_USER=(str, "root"),
MYSQL_PASSWORD=(str, "password"),
MYSQL_HOST=(str, "127.0.0.1"),
MYSQL_PORT=(str, "3306"),
MARIADB_DATABASE=(str, "db"),
MARIADB_USER=(str, "root"),
MARIADB_PASSWORD=(str, "password"),
MARIADB_HOST=(str, "127.0.0.1"),
MARIADB_PORT=(str, "3306"),
)

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
Expand Down Expand Up @@ -95,11 +95,11 @@
DATABASES = {
"default": {
"ENGINE": "django.db.backends.mysql",
"NAME": env("MYSQL_DATABASE"),
"USER": env("MYSQL_USER"),
"PASSWORD": env("MYSQL_PASSWORD"),
"HOST": env("MYSQL_HOST"),
"PORT": env("DOCKER_MYSQL_PORT", default=env("MYSQL_PORT", default="3306")),
"NAME": env("MARIADB_DATABASE"),
"USER": env("MARIADB_USER"),
"PASSWORD": env("MARIADB_PASSWORD"),
"HOST": env("MARIADB_HOST"),
"PORT": env("DOCKER_MYSQL_PORT", default=env("MARIADB_PORT", default="3306")),
"OPTIONS": {"charset": "utf8mb4"},
"TEST": {
"MIGRATE": False,
Expand Down

0 comments on commit 8502faf

Please sign in to comment.