Skip to content

Commit

Permalink
Merge pull request #344 from pinax/update-url
Browse files Browse the repository at this point in the history
Update urls to fix deprecations
  • Loading branch information
paltman authored Apr 24, 2021
2 parents dc4011a + 39ca874 commit 29257fc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ jobs:
lint:
name: Linting
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.9

- name: isort
uses: jamescurtin/isort-action@master

Expand All @@ -31,11 +31,11 @@ jobs:
strategy:
matrix:
python: [3.6, 3.7, 3.8, 3.9]
django: [2.2.*, 3.0.*, 3.1.*]
django: [2.2.*, 3.1.*, 3.2.*]
include:
- python: 3.5
django: 2.2.*

steps:
- uses: actions/checkout@v2

Expand Down
20 changes: 10 additions & 10 deletions account/urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from django.conf.urls import url
from django.urls import path

from account.views import (
ChangePasswordView,
Expand All @@ -13,13 +13,13 @@
)

urlpatterns = [
url(r"^signup/$", SignupView.as_view(), name="account_signup"),
url(r"^login/$", LoginView.as_view(), name="account_login"),
url(r"^logout/$", LogoutView.as_view(), name="account_logout"),
url(r"^confirm_email/(?P<key>\w+)/$", ConfirmEmailView.as_view(), name="account_confirm_email"),
url(r"^password/$", ChangePasswordView.as_view(), name="account_password"),
url(r"^password/reset/$", PasswordResetView.as_view(), name="account_password_reset"),
url(r"^password/reset/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$", PasswordResetTokenView.as_view(), name="account_password_reset_token"),
url(r"^settings/$", SettingsView.as_view(), name="account_settings"),
url(r"^delete/$", DeleteView.as_view(), name="account_delete"),
path("signup/", SignupView.as_view(), name="account_signup"),
path("login/", LoginView.as_view(), name="account_login"),
path("logout/", LogoutView.as_view(), name="account_logout"),
path("confirm_email/<str:key>/", ConfirmEmailView.as_view(), name="account_confirm_email"),
path("password/", ChangePasswordView.as_view(), name="account_password"),
path("password/reset/", PasswordResetView.as_view(), name="account_password_reset"),
path("password/reset/<str:uidb36>/<str:token>/$", PasswordResetTokenView.as_view(), name="account_password_reset_token"),
path("settings/", SettingsView.as_view(), name="account_settings"),
path("delete/", DeleteView.as_view(), name="account_delete"),
]

0 comments on commit 29257fc

Please sign in to comment.