Commit feaae72b authored by impfundev's avatar impfundev

feat: migrate to mysql

parent 703add06
...@@ -111,15 +111,12 @@ WSGI_APPLICATION = "config.wsgi.application" ...@@ -111,15 +111,12 @@ WSGI_APPLICATION = "config.wsgi.application"
DATABASES = { DATABASES = {
"default": { "default": {
"ENGINE": "django.db.backends.postgresql", "ENGINE": "django.db.backends.mysql",
"NAME": getenv("PGDATABASE"), "NAME": getenv("DB_NAME"),
"USER": getenv("PGUSER"), "USER": getenv("DB_USER"),
"PASSWORD": getenv("PGPASSWORD"), "PASSWORD": getenv("DB_PASSWORD"),
"HOST": getenv("PGHOST"), "HOST": getenv("DB_HOST"),
"PORT": getenv("PGPORT", 5432), "PORT": getenv("DB_PORT"),
"OPTIONS": {
"sslmode": "require",
},
} }
} }
...@@ -170,7 +167,7 @@ STORAGES = { ...@@ -170,7 +167,7 @@ STORAGES = {
CACHES = { CACHES = {
"default": { "default": {
"BACKEND": "django_redis.cache.RedisCache", "BACKEND": "django_redis.cache.RedisCache",
"LOCATION": "redis://default:zTuwykbejEOsZ4TGTku4IHRMJwu7JeHa@redis-12647.c1.ap-southeast-1-1.ec2.redns.redis-cloud.com:12647", "LOCATION": getenv("CACHE_LOCATION"),
}, },
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment