login_required 데코레이터를 사용하면 주소가 이상하게 연결이 됩니다...ㅠㅠ
미해결
작정하고 장고! Django로 Pinterest 따라만들기 : 바닥부터 배포까지
28강 수강중에 질문드립니다!! views.py의 hello_world 함수에서 login_required 데코레이터를 붙이고나니 8000:account/hello_world 로 접속하면 http://127.0.0.1:8000/accounts/login/?next=/account/hello_world/ 위와 같은 주소로 연결이 됩니다.... accounts라고 들어가면 안되는데... 왜 이렇게 연결되는지를 모르겠습니다...ㅠㅠㅠ 위 주소에서 accounts를 account로 바꾸면 로그인 창으로 잘 연결이 됩니다! 이런경우에는 어디를 봐서 수정을 해야할까요????ㅠㅠ
- decorator
- docker
- login_required
- 28강
- python
- django
- accounts
베이스 캠퍼스
댓글 2
좋아요 1
조회수 483





