Commit feaae72b authored by impfundev's avatar impfundev

feat: migrate to mysql

parent 703add06
......@@ -111,15 +111,12 @@ WSGI_APPLICATION = "config.wsgi.application"
DATABASES = {
"default": {
"ENGINE": "django.db.backends.postgresql",
"NAME": getenv("PGDATABASE"),
"USER": getenv("PGUSER"),
"PASSWORD": getenv("PGPASSWORD"),
"HOST": getenv("PGHOST"),
"PORT": getenv("PGPORT", 5432),
"OPTIONS": {
"sslmode": "require",
},
"ENGINE": "django.db.backends.mysql",
"NAME": getenv("DB_NAME"),
"USER": getenv("DB_USER"),
"PASSWORD": getenv("DB_PASSWORD"),
"HOST": getenv("DB_HOST"),
"PORT": getenv("DB_PORT"),
}
}
......@@ -170,7 +167,7 @@ STORAGES = {
CACHES = {
"default": {
"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