Example #1
0
#: Url where users are directed when they do not have the permissions they believe they should have.
DEVILRY_LACKING_PERMISSIONS_URL = None

#: Url where users are directed when they want to know what to do if their personal info in Devilry is wrong.
DEVILRY_WRONG_USERINFO_URL = None


#: Django apps that override the Devilry javascript translations (which is most
#: of the Devilry user interface).
DEVILRY_JAVASCRIPT_LOCALE_OVERRIDE_APPS = tuple()

#: Default language
LANGUAGE_CODE = 'en'

#: Available languages
gettext_noop = lambda s: s
LANGUAGES = [('en', gettext_noop('English')),
             ('nb', gettext_noop('Norwegian Bokmal'))]


#: Enable MathJax?
DEVILRY_ENABLE_MATHJAX = True



###################################################
# Setup logging using the defaults - logs to stderr
###################################################
from devilry_settings.log import create_logging_config
LOGGING = create_logging_config()
Example #2
0
DEVILRY_SYSTEM_ADMIN_EMAIL = "*****@*****.**"

## The urlscheme+domain where devilry is located. Used when sending links to users via email.
## DEVILRY_SCHEME_AND_DOMAIN+DEVILRY_URLPATH_PREFIX is the absolute URL to the devilry
## instance. WARNING: must not end with /
DEVILRY_SCHEME_AND_DOMAIN = "https://devilry.example.com"


###########################################
# Logging - These defaults are usually enough
# - The default config logs to the ``log/`` subdir of the directory containing
#   _this_ file.
###########################################
from devilry_settings.log import create_logging_config

logdir = join(parent_dir, "log")
LOGGING = create_logging_config(
    # Send error log messages to ADMINS on email?
    mail_admins=True,
    # Log to file? Logs are placed in the directory
    # configured by log_to_file_dir
    log_to_file=True,
    log_to_file_dir=logdir,
    # Log to stderr?
    log_to_stderr=False,
    # Set this to WARN to only log very dangerous
    # actions, to INFO to log any dangerous action,
    # or to ERROR to only log errors.
    dangerous_actions_loglevel="INFO",
)