title: Over-riding Django-allauth login/ registration urls with custom url/ pages
body: <p>I have configured django-allauth for login through Facebook, Twitter and Google.</p>
  
  <p>However, django-allauth accepts login request only at <code>/accounts/login/</code>, sign up request only at <code>/accounts/signup/</code> etc. 
  I have a modal form for login and registration on my home page and I want to use only that. </p>
  
  <p><a href="https://i.stack.imgur.com/SlSdY.png" rel="noreferrer"><img src="https://i.stack.imgur.com/SlSdY.png" alt="enter image description here"></a></p>
  
  <p>How do I use django-allauth system to allow login ( both social and custom)/ registration etc from the modal form on my home page? 
  I'm looking for mechanism to override django-allauth's urls and substitute them with my pages/ urls. </p>
  
  <p>The code is <a href="https://github.com/ShubhamRathi/ECommerce-Django" rel="noreferrer">here</a></p>
  
  <p>The modal form HTML is <a href="https://github.com/ShubhamRathi/ECommerce-Django/blob/master/ecomweb/static/modals/login.html" rel="noreferrer">here</a>. </p>
  
  <p>This question is perhaps similar to <a href="https://stackoverflow.com/questions/18695761/django-allauth-sign-up-login-and-social-connect-into-one-page">this</a>. However the answer in the question isnt too understandable. </p>
  
  <p>Following a few answers, I have made these changes:</p>
  
  <pre><code>#views.py
  def logreg(request):
      context = {
          'login_form': MyLoginForm(), 
          'signup_form': MySignupForm()
      }
      return render(request, 'login.html', context)
  
  #In URL Patterns of urls.py
  url(r'^login/', logreg, name='login'),
  
  In Index ( from where call to the modal is to be made):
  &lt;p&gt;Welcome visitor &lt;a href="#" data-modal-url="{% url 'login' %}"&gt;Login&lt;/a&gt; or &lt;a href="#"&gt;Register&lt;/a&gt;&lt;/p&gt;
  </code></pre>
  
  <p>All this work resulted in this mess:</p>
  
  <pre><code>    Internal Server Error: /login/
      Traceback (most recent call last):
  ...
      django.core.urlresolvers.NoReverseMatch: Reverse for 'ecomweb.home' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: []
  
  During handling of the above exception, another exception occurred:
  
  ...
  django.core.urlresolvers.NoReverseMatch: Reverse for 'home' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: []
  </code></pre>
  
  <p>I'm nuts to what is happening. </p>