Notice
Recent Posts
Recent Comments
Tags
- asp.net Select
- jquery 바코드생성
- 강제이동
- SSD 복사
- asp.net core Select
- 하드 마이그레이션
- ASP.Net Core 404
- XSS PHP
- 말줄임표시
- php 캐쉬제거
- 파일업로드 유효성체크
- 맥 오라클설치
- ViewBag
- 하드 윈도우 복사
- 타임피커
- 바코드 스캔하기
- jquery 바코드
- 바코드 생성하기
- ViewData
- django 엑셀불러오기
- javascript redirection
- javascript 바코드 생성
- 404에러페이지
- javascript 바코드스캔
- TempData
- 파일업로드 체크
- asp.net dropdownlist
- Mac Oracle
- javascript 유효성체크
- XSS방어
웹개발자의 기지개
[Django] You called this URL via POST, but the URL doesn't end in a slash and you have APPEND_SLASH set 본문
python/Django
[Django] You called this URL via POST, but the URL doesn't end in a slash and you have APPEND_SLASH set
http://portfolio.wonpaper.net 2022. 5. 5. 18:00RuntimeError at /member/register
You called this URL via POST, but the URL doesn't end in a slash and you have APPEND_SLASH set. Django can't redirect to the slash URL while maintaining POST data. Change your form to point to 127.0.0.1:8000/member/register/ (note the trailing slash), or set APPEND_SLASH=False in your Django settings.
Request Method: | POST |
Request URL: | http://127.0.0.1:8000/member/register |
Django Version: | 4.0.4 |
Exception Type: | RuntimeError |
Exception Value: | You called this URL via POST, but the URL doesn't end in a slash and you have APPEND_SLASH set. Django can't redirect to the slash URL while maintaining POST data. Change your form to point to 127.0.0.1:8000/member/register/ (note the trailing slash), or set APPEND_SLASH=False in your Django settings. |
Exception Location: | /Users/jongwon/PycharmProjects/django_test2/venv/lib/python3.10/site-packages/django/middleware/common.py, line 88, in get_full_path_with_slash |
Python Executable: | /Users/jongwon/PycharmProjects/django_test2/venv/bin/python |
Python Version: | 3.10.4 |
Python Path: | ['/Users/jongwon/PycharmProjects/django_test2', '/Library/Frameworks/Python.framework/Versions/3.10/lib/python310.zip', '/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10', '/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/lib-dynload', '/Users/jongwon/PycharmProjects/django_test2/venv/lib/python3.10/site-packages'] |
Server time: | Thu, 05 May 2022 12:30:17 +0900 |
127.0.0.1:8000/member/register/ 와 같이 매일 끝단에 슬러쉬를 붙여야 된다는 이야기이다.
아니면, settings.py 안에 APPEND_SLASH=False 를 붙여넣으라는 에러 메세지이다.
'python > Django' 카테고리의 다른 글
Comments