Skip to content

Instantly share code, notes, and snippets.

@rafaelcanovas
Last active April 27, 2021 03:21
Show Gist options
  • Save rafaelcanovas/bf777767b0383e05f320f2aff32d0f69 to your computer and use it in GitHub Desktop.
Save rafaelcanovas/bf777767b0383e05f320f2aff32d0f69 to your computer and use it in GitHub Desktop.
FastAPI + Django: settings.py
import os
DEBUG = os.environ.get('DEBUG', False)
SECRET_KEY = os.environ.get('SECRET_KEY', '')
USE_TZ = True
TIME_ZONE = 'America/Sao_Paulo'
INSTALLED_APPS = [
]
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'fastapi_django',
'USER': 'postgres',
'PASSWORD': '',
'HOST': 'localhost',
'PORT': '5432',
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment