@@ -0,0 +1,1024 @@
+import os%0Aimport urlparse%0A%0A%0Aclass Config(object):%0A    '''Default configuration object.'''%0A%0A    DEBUG = False%0A    TESTING = False%0A    PORT = int(os.environ.get('PORT', 5000))%0A%0A%0Aclass ProductionConfig(Config):%0A    '''Configuration object specific to production environments.'''%0A%0A    REDIS_URL = os.environ.get('REDISTOGO_URL')%0A    if REDIS_URL:%0A        url = urlparse.urlparse(REDIS_URL)%0A        REDIS_HOST = url.hostname%0A        REDIS_PORT = url.port%0A        REDIS_PASSWORD = url.password%0A%0A    MONGOLAB_URI = os.environ.get('MONGOLAB_URI')%0A    if MONGOLAB_URI:%0A        url = urlparse.urlparse(MONGOLAB_URI)%0A        MONGODB_USER = url.username%0A        MONGODB_PASSWORD = url.password%0A        MONGODB_HOST = url.hostname%0A        MONGODB_PORT = url.port%0A        MONGODB_DB = url.path%5B1:%5D%0A%0A%0Aclass DevelopmentConfig(Config):%0A    '''Configuration object specific to development environments.'''%0A%0A    DEBUG = True%0A%0A    MONGODB_HOST = 'localhost'%0A    MONGODB_PORT = 27017%0A    MONGODB_DB = os.environ.get('DBNAME', 'taarifa_backend')%0A

Add config script