host = 'http://mech-ai.appspot.com'

try:
    from local_config import *  # Override with config-local if exists
except ImportError:
    pass


import os

host_envs = {
    'prod': 'http://mech-ai.appspot.com',
    'dev': 'http://127.0.0.1:8080',
}

environment = os.getenv('ENV', 'dev')
host = host_env.get('environment')

username = os.getenv('USER')
access_token = os.getenv('TOKEN')

try:
    from local_config import *  # Override with local settings if exists
except ImportError:
    pass


Enable environment variables for settings
Enable environment variables for settings

+ import os
+ 
+ host_envs = {
- host = 'http://mech-ai.appspot.com'
+     'prod': 'http://mech-ai.appspot.com',
+     'dev': 'http://127.0.0.1:8080',
+ }
+ 
+ environment = os.getenv('ENV', 'dev')
+ host = host_env.get('environment')
+ 
+ username = os.getenv('USER')
+ access_token = os.getenv('TOKEN')
  
  try:
-     from local_config import *  # Override with config-local if exists
+     from local_config import *  # Override with local settings if exists
  except ImportError:
      pass
  
  
Enable environment variables for settings
## Code Before:
host = 'http://mech-ai.appspot.com'

try:
    from local_config import *  # Override with config-local if exists
except ImportError:
    pass


## Instruction:
Enable environment variables for settings
## Code After:
import os

host_envs = {
    'prod': 'http://mech-ai.appspot.com',
    'dev': 'http://127.0.0.1:8080',
}

environment = os.getenv('ENV', 'dev')
host = host_env.get('environment')

username = os.getenv('USER')
access_token = os.getenv('TOKEN')

try:
    from local_config import *  # Override with local settings if exists
except ImportError:
    pass

