
from volunteer_planner.settings.local import *

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'volunteer_planner',
        'PASSWORD': os.environ.get('DATABASE_PW', 'volunteer_planner'),
        'USER': os.environ.get('DB_USER', 'vp')
    }
}


from volunteer_planner.settings.local import *

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': os.environ.get('DATABASE_NAME', 'volunteer_planner'),
        'PASSWORD': os.environ.get('DATABASE_PW', 'volunteer_planner'),
        'USER': os.environ.get('DB_USER', 'vp')
    }
}

Make local mysql db name overridable with DATABASE_NAME environment variable
Make local mysql db name overridable with DATABASE_NAME  environment variable

  
  from volunteer_planner.settings.local import *
  
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.mysql',
-         'NAME': 'volunteer_planner',
+         'NAME': os.environ.get('DATABASE_NAME', 'volunteer_planner'),
          'PASSWORD': os.environ.get('DATABASE_PW', 'volunteer_planner'),
          'USER': os.environ.get('DB_USER', 'vp')
      }
  }
  
Make local mysql db name overridable with DATABASE_NAME environment variable
## Code Before:

from volunteer_planner.settings.local import *

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'volunteer_planner',
        'PASSWORD': os.environ.get('DATABASE_PW', 'volunteer_planner'),
        'USER': os.environ.get('DB_USER', 'vp')
    }
}

## Instruction:
Make local mysql db name overridable with DATABASE_NAME environment variable
## Code After:

from volunteer_planner.settings.local import *

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': os.environ.get('DATABASE_NAME', 'volunteer_planner'),
        'PASSWORD': os.environ.get('DATABASE_PW', 'volunteer_planner'),
        'USER': os.environ.get('DB_USER', 'vp')
    }
}
