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.
import logging
from django.db.models import signals
def logger_config():
# create logger
logger = logging.getLogger()
ch = logging.StreamHandler()
# create formatter
formatter = logging.Formatter("%(asctime)s - %(levelname)s - %(name)s - %(module)s - %(funcName)s - %(message)s")
# add formatter to ch
ch.setFormatter(formatter)
# add ch to logger
logger.addHandler(ch)
logger_config()