Skip to content

Commit 317abd0

Browse files
committed
fix: 기본 로그인 리다이렉트 url 변경
1 parent dc79390 commit 317abd0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pyconkr/settings.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,3 +232,7 @@
232232

233233
OAUTH_GITHUB_CALLBACK_URL = "http://localhost:8000/accounts/github/login/callback/"
234234
OAUTH_GOOGLE_CALLBACK_URL = "http://localhost:8000/accounts/google/login/callback/"
235+
236+
# login_required view에 로그인 되지 않은 상태로 접속할 경우 리다이렉트할 로그인 페이지를 설정합니다.
237+
# The URL or named URL pattern where requests are redirected for login when using the login_required() decorator
238+
LOGIN_URL = '/account/login/'

0 commit comments

Comments
 (0)