achief

Local.py

May 14th, 2023 (edited)
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | Software | 0 0
  1. # DB variables
  2. import dj_database_url
  3.  
  4. from .base import *
  5.  
  6. db_from_env = dj_database_url.config(conn_max_age=500)
  7.  
  8. # Database
  9. # https://docs.djangoproject.com/en/4.2/ref/settings/#databases
  10.  
  11. # SECURITY WARNING: keep the secret key used in production secret!
  12. SECRET_KEY = os.environ.get("SECRET_KEY", "acbdcedghij1234567890abcdefghajkl12345")
  13.  
  14. DATABASES = {"default": db_from_env}
Advertisement
Add Comment
Please, Sign In to add comment