123456789101112131415161718192021222324252627282930 |
- from os import urandom
- from os.path import abspath, join, dirname
- from flask_babel import gettext
- from flask import url_for
- LANGUAGES = { # Languages list (key must be the language and the value must be it's direction)
- gettext('English') :'LTR',
- gettext('Arabic') :'RTL'
- }
- PAGES = { # Pages in pages menu in website's navbar
- gettext('Bug tracker') :'https://urukproject.org/bt/login_page.php',
- gettext('Contribute') :'https://urukproject.org/en/contribute.html',
- gettext('Dist') :'https://urukproject.org/dist',
- gettext('Home') :'https://urukproject.org/',
- gettext('Blog') :'https://blog.urukproject.org/',
- gettext('Wiki') :'/'
- }
- ALLOWED_EXTENSIONS = set(['png', 'jpg', 'jpeg', 'gif']) # Allowed images extensions
- DEFAULT_LANGUAGE = 'EN'
- FAVICON = 'images/urukp.png'
- FOOTER_MESSAGE = gettext('© 2017 Uruk GNU/Linux • Website Code distributed under the AGPLv3+ • Website media licensed under CC BY-SA 4.')
- MAX_CONTENT_PATH = 16 * 1024 * 1024
- SECRET_KEY = urandom(24) # Secret Key
- SQLALCHEMY_TRACK_MODIFICATIONS = True
- UPLOAD_FOLDER = join(dirname(abspath(__file__)), 'wiki/static/') # Upload folder
- WEBSITE_LOGO = gettext('images/logo-e.png')
- WEBSITE_NAME = gettext('Uruk Wiki')
- WEBSITE_KEYWORDS = gettext('uruk, wiki, uruk wiki, uruk project, uruk linux, linux, URUK, URUK PROJECT') # Website Keywords (for SEO)
- FRONT_PAGE = gettext('index') # Front Page url, set to False if none
|