Skip to content

Commit

Permalink
Optional trailing slash on django apps. Fixes #505
Browse files Browse the repository at this point in the history
  • Loading branch information
omab committed Apr 4, 2015
1 parent 76f9370 commit f57e0ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions social/apps/django_app/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@

urlpatterns = patterns('social.apps.django_app.views',
# authentication / association
url(r'^login/(?P<backend>[^/]+)/$', 'auth',
url(r'^login/(?P<backend>[^/]+)/?$', 'auth',
name='begin'),
url(r'^complete/(?P<backend>[^/]+)/$', 'complete',
url(r'^complete/(?P<backend>[^/]+)/?$', 'complete',
name='complete'),
# disconnection
url(r'^disconnect/(?P<backend>[^/]+)/$', 'disconnect',
url(r'^disconnect/(?P<backend>[^/]+)/?$', 'disconnect',
name='disconnect'),
url(r'^disconnect/(?P<backend>[^/]+)/(?P<association_id>[^/]+)/$',
url(r'^disconnect/(?P<backend>[^/]+)/(?P<association_id>[^/]+)/?$',
'disconnect', name='disconnect_individual'),
)

0 comments on commit f57e0ca

Please sign in to comment.