Skip to content

No css/styles/javascript on logon page

I've installed both Postorius and Hyperkitty (both via pip) on RHEL7 / Python 2.7. We've then used the mailman-suite example django project to start django. We're using uwsgi and nginx. The main pages work, but when we try to login, we get a page but without anything in the head section of the HTML, no CSS, no javascript, etc, so the page is quite plain:

Screenshot_from_2017-05-04_16-07-10

We have run 'python manage.py collectstatic' and pointed nginx at the static directory, and the other static components work on other pages.

All we've done other than pip install things and deploy the django project is disable the Postorius middleware from MIDDLEWARE_CLASSES in settings because it seems this isn't meant to be there (but is in the pip package version by mistake?).

The source code of the page generated is this:

<!DOCTYPE html>
<html>
  <head>
    <title>Sign In</title>
    
    
  </head>
  <body>
    

    

    <div>
      <strong>Menu:</strong>
      <ul>
	
	<li><a href="/accounts/login/">Sign In</a></li>
	<li><a href="/accounts/signup/">Sign Up</a></li>
	
      </ul>
    </div>
    

<h1>Sign In</h1>




<p>Please sign in with one
of your existing third party accounts. Or, <a href="/accounts/signup/?next=%2Fpostorius%2Flists%2F">sign up</a>
for a example.com account and sign in below:</p>

<div class="socialaccount_ballot">

  <ul class="socialaccount_providers list-inline">
    






<li>
  <a title="Fedora" class="socialaccount_provider fedora btn btn-lg btn-default"
     href="/accounts/fedora/login/?process=login&next=%2Fpostorius%2Flists%2F">
    <img alt="" src="/static/django-mailman3/img/login/fedora.png" />
    Fedora
  </a>
</li>



<li>
  <a title="Yahoo" 
     class="socialaccount_provider openid yahoo btn btn-lg btn-default"
     href="/accounts/openid/login/?process=login&openid=http%3A%2F%2Fme.yahoo.com&next=%2Fpostorius%2Flists%2F">
    <img alt="" src="/static/django-mailman3/img/login/yahoo.png" />
    Yahoo
  </a>
</li>


<li>
  <a title="OpenID" class="socialaccount_provider openid btn btn-lg btn-default"
     href="/accounts/openid/login/?process=login&next=%2Fpostorius%2Flists%2F">
    <img alt="" src="/static/django-mailman3/img/login/openid.png" />
    OpenID
  </a>
</li>


<li>
  <a title="GitHub" class="socialaccount_provider github btn btn-lg btn-default"
     href="/accounts/github/login/?process=login&next=%2Fpostorius%2Flists%2F">
    <img alt="" src="/static/django-mailman3/img/login/github.png" />
    GitHub
  </a>
</li>


<li>
  <a title="GitLab" class="socialaccount_provider gitlab btn btn-lg btn-default"
     href="/accounts/gitlab/login/?process=login&next=%2Fpostorius%2Flists%2F">
    <img alt="" src="/static/django-mailman3/img/login/gitlab.png" />
    GitLab
  </a>
</li>


<li>
  <a title="Google" class="socialaccount_provider google btn btn-lg btn-default"
     href="/accounts/google/login/?process=login&next=%2Fpostorius%2Flists%2F">
    <img alt="" src="/static/django-mailman3/img/login/google.png" />
    Google
  </a>
</li>


<li>
  <a title="Twitter" class="socialaccount_provider twitter btn btn-lg btn-default"
     href="/accounts/twitter/login/?process=login&next=%2Fpostorius%2Flists%2F">
    <img alt="" src="/static/django-mailman3/img/login/twitter.png" />
    Twitter
  </a>
</li>


<li>
  <a title="Stack Exchange" class="socialaccount_provider stackexchange btn btn-lg btn-default"
     href="/accounts/stackexchange/login/?process=login&next=%2Fpostorius%2Flists%2F">
    <img alt="" src="/static/django-mailman3/img/login/stackexchange.png" />
    Stack Exchange
  </a>
</li>



  </ul>

  <div class="login-or">or</div>

</div>















<form class="login form-horizontal" method="POST" action="/accounts/login/">
  




<input type='hidden' name='csrfmiddlewaretoken' value='7tcIS5JJAYKIItWundPvNp3WfUbg6BoW' />



    <div class="form-group ">
        <label class="control-label col-sm-2"
               for="id_login">
            
                Login
            
        </label>
        <div class="col-sm-4">
            
                <input autofocus="autofocus" class="form-control" id="id_login" name="login" placeholder="Username or e-mail" type="text" />
            
            
        </div>
        
    </div>

    <div class="form-group ">
        <label class="control-label col-sm-2"
               for="id_password">
            
                Password
            
        </label>
        <div class="col-sm-4">
            
                <input class="form-control" id="id_password" name="password" placeholder="Password" type="password" />
            
            
        </div>
        
    </div>

    <div class="form-group ">
        <label class="control-label col-sm-2"
               for="id_remember">
            
        </label>
        <div class="col-sm-4">
            
                <div class="checkbox">
                    <label>
                        <input id="id_remember" name="remember" type="checkbox" /> Remember Me
                    </label>
                </div>
            
            
        </div>
        
    </div>



  
  <input type="hidden" name="next" value="/postorius/lists/" />
  
  <div class="form-group">
    <div class="col-md-offset-2 col-md-4">
      <button class="btn btn-primary" type="submit">Sign In</button>
      &nbsp;
      <a href="/accounts/password/reset/">Forgot Password?</a>
    </div>
  </div>
</form>


    
    
    
  </body>
</html>