config.py 508 B

12345678910111213141516171819202122232425262728
  1. import os
  2. #
  3. # configuration settings
  4. #
  5. class Config(object):
  6. #
  7. # secret
  8. #
  9. SECRET_KEY = os.getenv('SECRET_KEY') or 'secret!key'
  10. #
  11. # SQL Alchemy
  12. #
  13. SQLALCHEMY_DATABASE_URI = os.getenv('DATABASE_URL') or \
  14. 'sqlite:///' + os.path.join(os.path.abspath(os.path.dirname(__file__)), 'app/testrun.db')
  15. SQLALCHEMY_TRACK_MODIFICATIONS = False
  16. #
  17. # Testrun web-service
  18. #
  19. TESTRUN_SERVICE_HOST = os.getenv('TESTRUN_SERVICE_HOST') or 'http://127.0.0.1:6000'
  20. TESTRUN_SERVICE_URI = 'api/json/json'