[Fixed]-Django: generic class view + POST = HTTP 405 (Method not allowed)

17👍

I suppose you are using class-based views. If so then you need to define post method in your view or use mixin which does it (django.views.generic.edit.ProcessFormView for example). If you want to fully understand why this is necessary then look at dispatch method of django.views.generic.base.View.

👤Kirill

Leave a comment