Commit 33f2aae9 authored by D.H.D. Nguyen's avatar D.H.D. Nguyen
Browse files

update configurations

parent 62ce2d58
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
# -*- coding: utf-8 -*-
"""

Module ``config``
********************
*Module* ``config``

This module defines different Config objects for different servers.

@@ -20,6 +19,8 @@ class Config:
	SQLALCHEMY_TRACK_MODIFICATIONS = False
	BASE_DIR = basedir
	SQLALCHEMY_DATABASE_URI = 'sqlite:///%s'%(os.path.join(basedir, 'database.db'))
	MTURK_URL = None
	MTURK_SHOW_UP_URL = "https://requester.mturk.com/"

	@staticmethod
	def init_app(app):
@@ -48,8 +49,13 @@ class TestingConfig(Config):
								 'sqlite:///%s'%(os.path.join(basedir, 'database-test.db'))
	WTF_CSRF_ENABLED = False


config = {
	'development': DevelopmentConfig,
	'testing': TestingConfig,
	'default': DevelopmentConfig
}
""" 
Global variable for environment configurations.

"""
 No newline at end of file