|
|
@ -336,3 +336,16 @@ CISLO_IMG_DIR = os.path.join('cislo', 'img') |
|
|
|
|
|
|
|
# E-MAIL NOTIFICATIONS |
|
|
|
POSLI_MAILOVOU_NOTIFIKACI = False |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Logování chyb |
|
|
|
class InvalidTemplateVariable(str): |
|
|
|
def __mod__(self, variable): |
|
|
|
import logging |
|
|
|
logger = logging.getLogger(__name__) |
|
|
|
logger.warning("Proměnná '%s' neexistuje" % variable) |
|
|
|
return '' |
|
|
|
TEMPLATES[0]['OPTIONS']['string_if_invalid'] = InvalidTemplateVariable('%s') |
|
|
|
|
|
|
|
|
|
|
|