"""
URL patterns for the views included in ``django.contrib.auth``.

Including these URLs (via the ``include()`` directive) will set up the
following patterns based at whatever URL prefix they are included
under:

* User login at ``login/``.

* User logout at ``logout/``.

* The two-step password change at ``password/change/`` and
  ``password/change/done/``.

* The four-step password reset at ``password/reset/``,
  ``password/reset/confirm/``, ``password/reset/complete/`` and
  ``password/reset/done/``.

The default registration backend already has an ``include()`` for
these URLs, so under the default setup it is not necessary to manually
include these views. Other backends may or may not include them;
consult a specific backend's documentation for details.

"""

try:
    from django.conf.urls import patterns, url
except ImportError:
    from django.conf.urls.defaults import patterns, url

from django.contrib.auth import views as auth_views
from django_facebook import registration_views
from django_facebook.utils import replication_safe

urlpatterns = patterns('',
                       url(r'^login/$',
                           replication_safe(auth_views.login),
                           {'template_name': 'registration/login.html'},
                           name='auth_login'),
                       url(r'^logout/$',
                           replication_safe(auth_views.logout),
                           {'template_name': 'registration/logout.html'},
                           name='auth_logout'),
                       url(r'^password/change/$',
                           auth_views.password_change,
                           name='auth_password_change'),
                       url(r'^password/change/done/$',
                           auth_views.password_change_done,
                           name='auth_password_change_done'),
                       url(r'^password/reset/$',
                           auth_views.password_reset,
                           name='auth_password_reset'),
                       url(
                           r'^password/reset/confirm/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$',
                           auth_views.password_reset_confirm,
                           name='auth_password_reset_confirm'),
                       url(r'^password/reset/complete/$',
                           auth_views.password_reset_complete,
                           name='auth_password_reset_complete'),
                       url(r'^password/reset/done/$',
                           auth_views.password_reset_done,
                           name='auth_password_reset_done'),
                       url(r'^register/$',
                           registration_views.register,
                           name='registration_register'),
                       )

@@ -772,17 +772,8 @@
 %22%22%0A%0A
-try:%0A    
 from
@@ -801,98 +801,11 @@
 ort 
-patterns, url%0Aexcept ImportError:%0A    from django.conf.urls.defaults import patterns, url%0A
+url
 %0Afro
@@ -970,80 +970,40 @@
 s = 
-patterns('',%0A                       url(r'%5Elogin/$',%0A                   
+%5B%0A    url(%0A        r'%5Elogin/$',%0A
     
@@ -1042,35 +1042,16 @@
 login),%0A
-                   
         
@@ -1096,35 +1096,16 @@
 html'%7D,%0A
-                   
         
@@ -1125,34 +1125,33 @@
 gin'
-),
 %0A    
+),%0A
     
-       
+url(%0A
         
 url(
@@ -1146,20 +1146,16 @@
         
-url(
 r'%5Elogou
@@ -1160,35 +1160,16 @@
 out/$',%0A
-                   
         
@@ -1205,35 +1205,16 @@
 ogout),%0A
-                   
         
@@ -1260,35 +1260,16 @@
 html'%7D,%0A
-                   
         
@@ -1290,34 +1290,33 @@
 out'
-),
 %0A    
+),%0A
     
-       
+url(%0A
         
 url(
@@ -1303,36 +1303,32 @@
    url(%0A        
-url(
 r'%5Epassword/chan
@@ -1334,35 +1334,16 @@
 nge/$',%0A
-                   
         
@@ -1370,35 +1370,16 @@
 change,%0A
-                   
         
@@ -1409,34 +1409,33 @@
 nge'
-),
 %0A    
-           
+),%0A    url(%0A
         
 url(
@@ -1422,36 +1422,32 @@
    url(%0A        
-url(
 r'%5Epassword/chan
@@ -1458,35 +1458,16 @@
 one/$',%0A
-                   
         
@@ -1499,35 +1499,16 @@
 e_done,%0A
-                   
         
@@ -1543,34 +1543,33 @@
 one'
+%0A    
 ),%0A    
-           
+url(%0A
         
 url(
@@ -1556,36 +1556,32 @@
    url(%0A        
-url(
 r'%5Epassword/rese
@@ -1586,35 +1586,16 @@
 set/$',%0A
-                   
         
@@ -1621,35 +1621,16 @@
 _reset,%0A
-                   
         
@@ -1659,58 +1659,25 @@
 set'
-),
 %0A    
-                   url(%0A                   
+),%0A    url(%0A
     
@@ -1749,35 +1749,16 @@
 .+)/$',%0A
-                   
         
@@ -1792,35 +1792,16 @@
 onfirm,%0A
-                   
         
@@ -1838,34 +1838,33 @@
 irm'
-),
 %0A    
-           
+),%0A    url(%0A
         
 url(
@@ -1851,36 +1851,32 @@
    url(%0A        
-url(
 r'%5Epassword/rese
@@ -1890,35 +1890,16 @@
 ete/$',%0A
-                   
         
@@ -1934,35 +1934,16 @@
 mplete,%0A
-                   
         
@@ -1981,34 +1981,33 @@
 ete'
+%0A    
 ),%0A    
-           
+url(%0A
         
 url(
@@ -2002,20 +2002,16 @@
         
-url(
 r'%5Epassw
@@ -2029,35 +2029,16 @@
 one/$',%0A
-                   
         
@@ -2069,35 +2069,16 @@
 t_done,%0A
-                   
         
@@ -2112,34 +2112,33 @@
 one'
+%0A    
 ),%0A    
-           
+url(%0A
         
 url(
@@ -2133,20 +2133,16 @@
         
-url(
 r'%5Eregis
@@ -2149,35 +2149,16 @@
 ter/$',%0A
-                   
         
@@ -2186,35 +2186,16 @@
 gister,%0A
-                   
         
@@ -2226,32 +2226,14 @@
 ter'
-),%0A                   
+%0A
     )
+,%0A%5D
 %0A

clean up auth_urls to match 1.8+