src/cm/main.py
author Simon Descarpentries <sid@sopinspace.com>
Wed, 09 May 2012 17:13:33 +0200
changeset 417 c5e91f204371
parent 360 bfaab8740995
permissions -rw-r--r--
After investigations, commit the proposed patch by kklimonda presented with the following introduction : cm/templates/site/login_form.html template uses a relative url for the form action, which seems to break deployment in the subfolder when trailing slash is missing (the form redirects to the upper folder breaking login). Using {% url login %} (as in the attached patch) instead would fix the issue.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     1
import logging
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     2
from django.db.models import signals
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     3
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     4
def logger_config():
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     5
    # create logger
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     6
    logger = logging.getLogger()
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     7
    ch = logging.StreamHandler()
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     8
    # create formatter
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     9
    formatter = logging.Formatter("%(asctime)s - %(levelname)s - %(name)s - %(module)s - %(funcName)s - %(message)s")
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    10
    # add formatter to ch
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    11
    ch.setFormatter(formatter)
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    12
    # add ch to logger
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    13
    logger.addHandler(ch)
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    14
360
bfaab8740995 Add abiword as an alternative to open office for conversions
gibus
parents: 0
diff changeset
    15
logger_config()