0👍
✅
I didn’t have form element and after sending csrf_token as data in post options the problem was solved:
data:{csrfmiddlewaretoken: '{{ csrf_token }}'}
1👍
you should first make sure sure that everything is fine server-side, i.e. 404 (not found) and 403 (forbidden) indicate that you’re posting to an incorrect url. If your on using the django dev server, you can see the response code in the terminal. If you see 403s and 404s there, debug your server side code.
👤Hoff
- [Answer]-Django QuerysSet for finding related foreign key fields
- [Answer]-User/Group permission class
- [Answer]-DJANGO regular expression not match specific file extensions
- [Answer]-Django ignoring changes in urls.py
- [Answer]-Sending email with gmail smtp
Source:stackexchange.com