

import sys

if 'runserver' in sys.argv:
    from local_settings import *
else:
    from production_settings import *



import os
import sys

if 'PRODUCTION' in os.environ and os.environ['PRODUCTION'].lower() in [True, 'y', 'yes', '1',]:
    from production_settings import *
elif 'runserver' in sys.argv:
    from local_settings import *
else:
    from production_settings import *

Add ability to specify which settings are used via `export PRODUCTION=0'
Add ability to specify which settings are used via `export PRODUCTION=0'

  
  
+ import os
  import sys
  
+ if 'PRODUCTION' in os.environ and os.environ['PRODUCTION'].lower() in [True, 'y', 'yes', '1',]:
+     from production_settings import *
- if 'runserver' in sys.argv:
+ elif 'runserver' in sys.argv:
      from local_settings import *
  else:
      from production_settings import *
  
Add ability to specify which settings are used via `export PRODUCTION=0'
## Code Before:


import sys

if 'runserver' in sys.argv:
    from local_settings import *
else:
    from production_settings import *

## Instruction:
Add ability to specify which settings are used via `export PRODUCTION=0'
## Code After:


import os
import sys

if 'PRODUCTION' in os.environ and os.environ['PRODUCTION'].lower() in [True, 'y', 'yes', '1',]:
    from production_settings import *
elif 'runserver' in sys.argv:
    from local_settings import *
else:
    from production_settings import *
