Last active
October 4, 2020 14:54
-
-
Save rob-kistner/1c511538b93ad3e1bdb0ffd6af4dad4f to your computer and use it in GitHub Desktop.
Django - DB Settings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # Required: | |
| # pip3 install mysqlclient | |
| # | |
| DATABASES = { | |
| 'default': { | |
| 'ENGINE': 'django.db.backends.mysql', | |
| 'NAME': 'dbname', | |
| 'USER': 'username', | |
| 'PASSWORD': 'password', | |
| 'HOST': 'localhost', | |
| 'PORT': 3306, | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # Required: | |
| # pip3 install psycopg2 | |
| # | |
| DATABASES = { | |
| 'default': { | |
| 'ENGINE': 'django.db.backends.postgresql', | |
| 'NAME': 'dbname', | |
| 'USER': 'username', | |
| 'PASSWORD': 'password', | |
| 'HOST': 'localhost', | |
| 'PORT': 5432, | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # No requirements, built-in | |
| # | |
| DATABASES = { | |
| 'default': { | |
| 'ENGINE': 'django.db.backends.sqlite3', | |
| 'NAME': 'dbname', | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment