config.py 634 B

12345678910111213141516171819
  1. # Name and port of the server
  2. SERVER_NAME = ['localhost:5000']
  3. # DEBUG has to be to False in a production enrironment for security reasons
  4. DEBUG = True
  5. # Secret key for generating tokens
  6. SECRET_KEY = 'houdini'
  7. # Database choice
  8. SQLALCHEMY_DATABASE_URI = 'sqlite:///app.db'
  9. SQLALCHEMY_TRACK_MODIFICATIONS = True
  10. # Configuration of a Gmail account for sending mails
  11. MAIL_SERVER = 'smtp.googlemail.com'
  12. MAIL_PORT = 465
  13. MAIL_USE_TLS = False
  14. MAIL_USE_SSL = True
  15. MAIL_USERNAME = 'flask.boilerplate'
  16. MAIL_PASSWORD = 'flaskboilerplate123'
  17. ADMINS = ['flask.boilerplate@gmail.com']
  18. # Number of times a password is hashed
  19. BCRYPT_LOG_ROUNDS = 12