old_contents: from .base import *
  
  
  # SECURITY CONFIG
  
  DEBUG = True
  
  ALLOWED_HOSTS = ['api.kino-project.tech']
  
  
  # Database
  # https://docs.djangoproject.com/en/1.10/ref/settings/#databases
  
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.sqlite3',
          'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
      }
  }
  
new_contents: from .base import *
  
  
  # SECURITY CONFIG
  
  DEBUG = True
  
  ALLOWED_HOSTS = ['api.kino-project.tech']
  
  try:
      from .GLOBALS import *
  except ImportError or ModuleNotFoundError:
      PG_SERVER = os.environ['PG_SERVER']
      PG_PORT = os.environ['PG_PORT']
      PG_DB = os.environ['PG_DB']
      PG_USERNAME = os.environ['PG_USERNAME']
      PG_PASSWORD = os.environ['PG_PASSWORD']
  
  # Database
  # https://docs.djangoproject.com/en/1.10/ref/settings/#databases
  
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.postgresql',
          'HOST': PG_SERVER,
          'NAME': 'test_{}_dev'.format(PG_DB),
          'USER': PG_USERNAME,
          'PORT': PG_PORT,
          'PASSWORD': PG_PASSWORD,
      }
  }
  
subject: Change the database connection