Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # DB variables
- import dj_database_url
- from .base import *
- db_from_env = dj_database_url.config(conn_max_age=500)
- # Database
- # https://docs.djangoproject.com/en/4.2/ref/settings/#databases
- # SECURITY WARNING: keep the secret key used in production secret!
- SECRET_KEY = os.environ.get("SECRET_KEY", "acbdcedghij1234567890abcdefghajkl12345")
- DATABASES = {"default": db_from_env}
Advertisement
Add Comment
Please, Sign In to add comment