Skip to content

Instantly share code, notes, and snippets.

@CWKSC
Last active January 18, 2022 17:34
Show Gist options
  • Save CWKSC/9338037e8626d739320994a54f583b2e to your computer and use it in GitHub Desktop.
Save CWKSC/9338037e8626d739320994a54f583b2e to your computer and use it in GitHub Desktop.
Django with postgres note
import os
DATABASES = {
'default': {
'ENGINE': os.environ.get('DATABASE_ENGINE'),
'NAME': os.environ.get('DATABASE_NAME'),
'USER': os.environ.get('DATABASE_USER'),
'PASSWORD': os.environ.get('DATABASE_PASSWORD'),
'HOST': os.environ.get('DATABASE_HOST'),
'PORT': os.environ.get('DATABASE_PORT'),
}
}
LANGUAGE_CODE = 'zh-Hant'
TIME_ZONE = 'Asia/Hong_Kong'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment