from django.utils.decorators import method_decorator

@method_decorator(csrf_exempt)
def dispatch(self, *args, **kwargs):
    return super(ApplyForRental, self).dispatch(*args, **kwargs)
405 POST method no allowed on heroku with django