Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6c0276b

Browse files
postgresql
1 parent af0b4d4 commit 6c0276b

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed
68 Bytes
Binary file not shown.

‎leetcodeApi/settings.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -79,24 +79,24 @@
7979
# Database
8080
# https://docs.djangoproject.com/en/4.0/ref/settings/#databases
8181

82-
DATABASES = {
83-
'default': {
84-
'ENGINE': 'django.db.backends.sqlite3',
85-
'NAME': BASE_DIR / 'db.sqlite3',
86-
}
87-
}
88-
8982
# DATABASES = {
9083
# 'default': {
91-
# 'ENGINE': 'django.db.backends.postgresql',
92-
# 'NAME': 'LeetCode',
93-
# 'USER': 'postgres',
94-
# 'PASSWORD': 'postgres',
95-
# 'HOST': '127.0.0.1',
96-
# 'PORT': '5432',
84+
# 'ENGINE': 'django.db.backends.sqlite3',
85+
# 'NAME': BASE_DIR / 'db.sqlite3',
9786
# }
9887
# }
9988

89+
DATABASES = {
90+
'default': {
91+
'ENGINE': 'django.db.backends.postgresql',
92+
'NAME': 'LeetCode',
93+
'USER': 'postgres',
94+
'PASSWORD': 'postgres',
95+
'HOST': '127.0.0.1',
96+
'PORT': '5432',
97+
}
98+
}
99+
100100
# Password validation
101101
# https://docs.djangoproject.com/en/4.0/ref/settings/#auth-password-validators
102102

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /