Skip to content

Commit 2bddb94

Browse files
author
Tabatha Memmott
committed
Merge pull request #148 from Tivix/developDemo
Develop demo
2 parents ef17cb3 + 29669be commit 2bddb94

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

demo/demo/urls.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
from django.conf.urls import patterns, include, url
1+
from django.conf.urls import include, url
22
from django.contrib import admin
33
from django.views.generic import TemplateView, RedirectView
44

5-
urlpatterns = patterns('',
5+
urlpatterns = [
66
url(r'^$', TemplateView.as_view(template_name="home.html"), name='home'),
77
url(r'^signup/$', TemplateView.as_view(template_name="signup.html"),
88
name='signup'),
@@ -36,4 +36,4 @@
3636
url(r'^account/', include('allauth.urls')),
3737
url(r'^admin/', include(admin.site.urls)),
3838
url(r'^accounts/profile/$', RedirectView.as_view(url='/', permanent=True), name='profile-redirect'),
39-
)
39+
]

rest_auth/registration/urls.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
from django.views.generic import TemplateView
2-
from django.conf.urls import patterns, url
2+
from django.conf.urls import url
33

44
from .views import RegisterView, VerifyEmailView
55

6-
urlpatterns = patterns(
7-
'',
6+
urlpatterns = [
87
url(r'^$', RegisterView.as_view(), name='rest_register'),
98
url(r'^verify-email/$', VerifyEmailView.as_view(), name='rest_verify_email'),
109

@@ -21,4 +20,4 @@
2120
# djang-allauth https://github.com/pennersr/django-allauth/blob/master/allauth/account/views.py#L190
2221
url(r'^account-confirm-email/(?P<key>\w+)/$', TemplateView.as_view(),
2322
name='account_confirm_email'),
24-
)
23+
]

rest_auth/urls.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
from django.conf.urls import patterns, url
1+
from django.conf.urls import url
22

33
from rest_auth.views import (
44
LoginView, LogoutView, UserDetailsView, PasswordChangeView,
55
PasswordResetView, PasswordResetConfirmView
66
)
77

8-
urlpatterns = patterns(
9-
'',
8+
urlpatterns = [
109
# URLs that do not require a session or valid token
1110
url(r'^password/reset/$', PasswordResetView.as_view(),
1211
name='rest_password_reset'),
@@ -18,4 +17,4 @@
1817
url(r'^user/$', UserDetailsView.as_view(), name='rest_user_details'),
1918
url(r'^password/change/$', PasswordChangeView.as_view(),
2019
name='rest_password_change'),
21-
)
20+
]

0 commit comments

Comments
 (0)