Hỏi & Đáp
26:47 새로고침 후 write페이지에서 에러가 나타났습니다.
++ def write (request): form = Form(request.POST) if request.method == 'POST' : 위의 코드를 def write (request): #POST발생 form = Form(request.POST or None ) if request.method == 'POST' 이와 같이 바꿔주었더니 문제가 해결되었습니다. 이유는 잘 모르겠습니다. 참고 사이트 : https://stackoverflow.com/questions/35748734/django-local-variable-form-referenced-before-assignment
- Lượt thích
- 0
- Số bình luận
- 2
- Lượt xem
- 670

