Skip to content

Commit 95df570

Browse files
authored
Merge pull request #83 from hanlee55/change-urls-id-login
로그인 페이지의 url을 account/login/ 에서 accounts/login/으로 변경
2 parents 5d50e5e + 4f63200 commit 95df570

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

account/urls.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88

99
urlpatterns = [
1010
path("auth/", include("dj_rest_auth.urls")),
11-
path("account/login/", IdLogin.as_view(), name='account_login'),
12-
path("account/email/", IdLogin.as_view(), name='account_email'),
13-
path("account/logout/", Logout.as_view(), name='account_logout'),
14-
path("account/signup/", IdLogin.as_view(), name="account_signup"),
11+
path("accounts/login/", IdLogin.as_view(), name='account_login'),
12+
path("accounts/email/", IdLogin.as_view(), name='account_email'),
13+
path("accounts/logout/", Logout.as_view(), name='account_logout'),
14+
path("accounts/signup/", IdLogin.as_view(), name="account_signup"),
1515
path("auth/github/login/", GitHubLogin.as_view(), name="github_login"),
1616
path("auth/google/login/", GoogleLogin.as_view(), name="google_login"),
1717
#path("my-page/payments", MyPage.as_view())

pyconkr/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,4 +235,4 @@
235235

236236
# login_required view에 로그인 되지 않은 상태로 접속할 경우 리다이렉트할 로그인 페이지를 설정합니다.
237237
# The URL or named URL pattern where requests are redirected for login when using the login_required() decorator
238-
LOGIN_URL = '/account/login/'
238+
LOGIN_URL = '/accounts/login/'

0 commit comments

Comments
 (0)