La version 5 de Planète Casio. Regroupe le forum, les programmes, les tutoriel, les sprites et tous les autres outils développés par nos soins.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
889B

  1. import os
  2. class Config(object):
  3. SECRET_KEY = os.environ.get('SECRET_KEY') or 'a-random-secret-key'
  4. SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or \
  5. 'postgresql+psycopg2://' + os.environ.get('USER') + ':@/pcv5'
  6. SQLALCHEMY_TRACK_MODIFICATIONS = False
  7. UPLOAD_FOLDER = './app/static/avatars'
  8. class V5Config(object):
  9. # Length allocated to privilege names (slugs)
  10. PRIVS_MAXLEN = 64
  11. # Forbidden user names
  12. FORBIDDEN_USERNAMES = ["admin", "root", "webmaster", "contact"]
  13. # Unauthorized message (@priv_required)
  14. UNAUTHORIZED_MSG = "Vous n'avez pas l'autorisation d'effectuer cette action !"
  15. # Minimum and maximum user name length
  16. USER_NAME_MINLEN = 3
  17. USER_NAME_MAXLEN = 32
  18. # Minimum password length for new users and new passwords
  19. PASSWORD_MINLEN = 10
  20. # Maximum topic name length
  21. TOPIC_NAME_MAXLEN = 32