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.

config.py 756B

12345678910111213141516171819
  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. LOGIN_DISABLED=True
  9. class V5Config(object):
  10. # Length allocated to privilege names (slugs)
  11. PRIVS_MAXLEN = 64
  12. # Forbidden user names
  13. FORBIDDEN_USERNAMES = [ "admin", "root", "webmaster", "contact" ]
  14. # Forbidden chars in user names (regex)
  15. FORBIDDEN_CHARS_USERNAMES = r"[/]"
  16. # Unauthorized message (@priv_required)
  17. UNAUTHORIZED_MSG = "Vous n'avez pas l'autorisation d'effectuer cette action !"