title: Django Allauth and urls
body: <p>I have a dev environment for a test of Django.  I am running Python 3.5.2 out of a "local" <code>pyenv</code> install.  I have Django 1.10.2.  I discovered the <code>allauth</code> registration plugin yesterday and have been playing with it but have hit a snag.</p>
  
  <p>My site is "dev.my.domain.com".  The intent is that there will not be any "public" information on the production version of this site.  The production version will be called something like: "members.my.domain.com".  So, I wonder if it is possible for the "allauth" plugin to have all non-/adomn inbound requests check for auth?</p>
  
  <p>So, requests to: </p>
  
  <ul>
  <li>dev.my.domain.com</li>
  <li>dev.my.domain.com/foo</li>
  <li>dev.my.domain.com/foo/../bar/...</li>
  </ul>
  
  <p>should all be checked for auth.  If not there then I assume "allauth" will redirect to a login/signup page.</p>
  
  <p>I have tried setting the <code>Members/urls.py</code> file as:</p>
  
  <pre><code>from django.conf.urls import include, url
  from django.contrib import admin
  
  urlpatterns = [
      url(r'^$', include('allauth.urls')),
      url(r'^admin/', admin.site.urls),
  ]
  </code></pre>
  
  <p>but that bombs with a Page Not Found error and the <code>DEBUG</code> message:</p>
  
  <pre><code>    Using the URLconf defined in Members.urls, Django tried these URL patterns, in this order:
      ^$ ^ ^signup/$ [name='account_signup']
      ^$ ^ ^login/$ [name='account_login']
      ^$ ^ ^logout/$ [name='account_logout']
      ^$ ^ ^password/change/$ [name='account_change_password']
      ^$ ^ ^password/set/$ [name='account_set_password']
      ^$ ^ ^inactive/$ [name='account_inactive']
      ^$ ^ ^email/$ [name='account_email']
      ^$ ^ ^confirm-email/$ [name='account_email_verification_sent']
      ^$ ^ ^confirm-email/(?P&lt;key&gt;[-:\w]+)/$ [name='account_confirm_email']
      ^$ ^ ^password/reset/$ [name='account_reset_password']
      ^$ ^ ^password/reset/done/$ [name='account_reset_password_done']
      ^$ ^ ^password/reset/key/(?P&lt;uidb36&gt;[0-9A-Za-z]+)-(?P&lt;key&gt;.+)/$ [name='account_reset_password_from_key']
      ^$ ^ ^password/reset/key/done/$ [name='account_reset_password_from_key_done']
      ^$ ^social/
      ^$ ^google/
      ^$ ^facebook/
      ^$ ^facebook/login/token/$ [name='facebook_login_by_token']
      ^admin/
      The current URL, , didn't match any of these.
  </code></pre>
  
  <p>I bowed to my ignorance and went back to the allauth docs and used their default <code>urls</code> setting:</p>
  
  <pre><code>from django.conf.urls import include, url
  from django.contrib import admin
  
  urlpatterns = [
      url(r'^accounts/', include('allauth.urls')),
      url(r'^admin/', admin.site.urls),
  ]
  </code></pre>
  
  <p>but that also bombs with a Page Not Found and a different message:</p>
  
  <pre><code>    Using the URLconf defined in Members.urls, Django tried these URL patterns, in this order:
      ^accounts/
      ^admin/
      The current URL, , didn't match any of these.
  </code></pre>
  
  <p>I think the rest of the "allauth" install was done correctly but I am missing something.</p>
  
  <p>Ideas?</p>