Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
library-app-django
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ilham Maulana
library-app-django
Commits
feaae72b
Commit
feaae72b
authored
Jul 05, 2024
by
impfundev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: migrate to mysql
parent
703add06
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
settings.py
config/settings.py
+7
-10
No files found.
config/settings.py
View file @
feaae72b
...
...
@@ -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"
)
,
},
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment