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.
from django.test import TestCase
from django.test.client import Client
from django.core import management
from cm.models import *
from cm.security import *
from cm.tests.test_comment_positioning import create_comment
class RegistrationTest(TestCase):
fixtures = ['roles_generic','test_content']
def test_registration(self):
user = UserProfile.objects.create_inactive_user('no@noreply', False)