development.py.example 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. """
  2. flaskbb.configs.development
  3. ~~~~~~~~~~~~~~~~~~~~
  4. This is the FlaskBB's development config.
  5. :copyright: (c) 2014 by the FlaskBB Team.
  6. :license: BSD, see LICENSE for more details.
  7. """
  8. from flaskbb.configs.default import DefaultConfig
  9. class DevelopmentConfig(DefaultConfig):
  10. # Indicates that it is a dev environment
  11. DEBUG = True
  12. # SQLAlchemy connection options
  13. # This will create in the applications folder (where manage.py is)
  14. # a database named flaskbb.sqlite.
  15. SQLALCHEMY_DATABASE_URI = 'sqlite:///' + DefaultConfig._basedir + '/' + \
  16. 'flaskbb.sqlite'
  17. # This will print all SQL statements
  18. SQLALCHEMY_ECHO = True
  19. # Security
  20. SECRET_KEY = "SecretKeyForSessionSigning"
  21. WTF_CSRF_ENABLED = True
  22. WTF_CSRF_SECRET_KEY = "reallyhardtoguess"
  23. # Recaptcha
  24. # To get recaptcha, visit the link below:
  25. # https://www.google.com/recaptcha/admin/create
  26. # Those keys are only going to work on localhost!
  27. RECAPTCHA_ENABLED = True
  28. RECAPTCHA_USE_SSL = False
  29. RECAPTCHA_PUBLIC_KEY = "6LcZB-0SAAAAAGIddBuSFU9aBpHKDa16p5gSqnxK"
  30. RECAPTCHA_PRIVATE_KEY = "6LcZB-0SAAAAAPuPHhazscMJYa2mBe7MJSoWXrUu"
  31. RECAPTCHA_OPTIONS = {"theme": "white"}
  32. # Mail
  33. # Local SMTP Server
  34. #MAIL_SERVER = "localhost"
  35. #MAIL_PORT = 25
  36. #MAIL_USE_SSL = False
  37. #MAIL_USERNAME = ""
  38. #MAIL_PASSWORD = ""
  39. #MAIL_DEFAULT_SENDER = "noreply@example.org"
  40. # Google Mail Example
  41. MAIL_SERVER = "smtp.gmail.com"
  42. MAIL_PORT = 465
  43. MAIL_USE_SSL = True
  44. MAIL_USERNAME = "your_username@gmail.com"
  45. MAIL_PASSWORD = "your_password"
  46. MAIL_DEFAULT_SENDER = ("Your Name", "your_username@gmail.com")
  47. # The user who should recieve the error logs
  48. ADMINS = ["your_admin_user@gmail.com"]