
import config
import constants


# Flask-SQLAlchemy
SQLALCHEMY_DATABASE_URI = 'mysql://{database_user}:{database_password}@{database_host}/{database_name}'.format(
    database_user=config.DATABASE_USER,
    database_password=config.DATABASE_PASSWORD,
    database_host=config.DATABASE_HOST,
    database_name=config.DATABASE_NAME if config.BUILD_ENVIRONMENT == constants.build_environment.PROD else config.DATABASE_NAME + '_dev',
)
SQLALCHEMY_TEST_DATABASE_URI = 'mysql://{database_user}:{database_password}@{database_host}/{database_name}'.format(
    database_user=config.DATABASE_USER,
    database_password=config.DATABASE_PASSWORD,
    database_host=config.DATABASE_HOST,
    database_name=config.DATABASE_NAME + '_test',
)
SQLALCHEMY_TRACK_MODIFICATIONS = False

# Flask session secret key
SECRET_KEY = config.FLASK_SECRET_KEY


import config
import constants


# Flask-SQLAlchemy
SQLALCHEMY_DATABASE_URI = 'mysql://{database_user}:{database_password}@{database_host}/{database_name}'.format(
    database_user=config.DATABASE_USER,
    database_password=config.DATABASE_PASSWORD,
    database_host=config.DATABASE_HOST,
    database_name=config.DATABASE_NAME if config.BUILD_ENVIRONMENT == constants.build_environment.PROD else config.DATABASE_NAME + '_dev',
)
SQLALCHEMY_TEST_DATABASE_URI = 'mysql://{database_user}:{database_password}@{database_host}/{database_name}'.format(
    database_user=config.DATABASE_USER,
    database_password=config.DATABASE_PASSWORD,
    database_host=config.DATABASE_HOST,
    database_name=config.DATABASE_NAME + '_test',
)
SQLALCHEMY_TRACK_MODIFICATIONS = False

# Flask session cookie name
SESSION_COOKIE_NAME = 'modern-paste-session'

# Flask session secret key
SECRET_KEY = config.FLASK_SECRET_KEY

Use more specific session cookie name
Use more specific session cookie name

  
  import config
  import constants
  
  
  # Flask-SQLAlchemy
  SQLALCHEMY_DATABASE_URI = 'mysql://{database_user}:{database_password}@{database_host}/{database_name}'.format(
      database_user=config.DATABASE_USER,
      database_password=config.DATABASE_PASSWORD,
      database_host=config.DATABASE_HOST,
      database_name=config.DATABASE_NAME if config.BUILD_ENVIRONMENT == constants.build_environment.PROD else config.DATABASE_NAME + '_dev',
  )
  SQLALCHEMY_TEST_DATABASE_URI = 'mysql://{database_user}:{database_password}@{database_host}/{database_name}'.format(
      database_user=config.DATABASE_USER,
      database_password=config.DATABASE_PASSWORD,
      database_host=config.DATABASE_HOST,
      database_name=config.DATABASE_NAME + '_test',
  )
  SQLALCHEMY_TRACK_MODIFICATIONS = False
  
+ # Flask session cookie name
+ SESSION_COOKIE_NAME = 'modern-paste-session'
+ 
  # Flask session secret key
  SECRET_KEY = config.FLASK_SECRET_KEY
  
Use more specific session cookie name
## Code Before:

import config
import constants


# Flask-SQLAlchemy
SQLALCHEMY_DATABASE_URI = 'mysql://{database_user}:{database_password}@{database_host}/{database_name}'.format(
    database_user=config.DATABASE_USER,
    database_password=config.DATABASE_PASSWORD,
    database_host=config.DATABASE_HOST,
    database_name=config.DATABASE_NAME if config.BUILD_ENVIRONMENT == constants.build_environment.PROD else config.DATABASE_NAME + '_dev',
)
SQLALCHEMY_TEST_DATABASE_URI = 'mysql://{database_user}:{database_password}@{database_host}/{database_name}'.format(
    database_user=config.DATABASE_USER,
    database_password=config.DATABASE_PASSWORD,
    database_host=config.DATABASE_HOST,
    database_name=config.DATABASE_NAME + '_test',
)
SQLALCHEMY_TRACK_MODIFICATIONS = False

# Flask session secret key
SECRET_KEY = config.FLASK_SECRET_KEY

## Instruction:
Use more specific session cookie name
## Code After:

import config
import constants


# Flask-SQLAlchemy
SQLALCHEMY_DATABASE_URI = 'mysql://{database_user}:{database_password}@{database_host}/{database_name}'.format(
    database_user=config.DATABASE_USER,
    database_password=config.DATABASE_PASSWORD,
    database_host=config.DATABASE_HOST,
    database_name=config.DATABASE_NAME if config.BUILD_ENVIRONMENT == constants.build_environment.PROD else config.DATABASE_NAME + '_dev',
)
SQLALCHEMY_TEST_DATABASE_URI = 'mysql://{database_user}:{database_password}@{database_host}/{database_name}'.format(
    database_user=config.DATABASE_USER,
    database_password=config.DATABASE_PASSWORD,
    database_host=config.DATABASE_HOST,
    database_name=config.DATABASE_NAME + '_test',
)
SQLALCHEMY_TRACK_MODIFICATIONS = False

# Flask session cookie name
SESSION_COOKIE_NAME = 'modern-paste-session'

# Flask session secret key
SECRET_KEY = config.FLASK_SECRET_KEY
