django generic view gives HTTP 405 error while generating reports and tables
<p>I wish to to develop a small class based view that generates reports in table form using django filters and django tables2.</p>

<p>I am following this guide.
<a href="http://www.craigderington.me/django-generic-listview-with-django-filters-and-django-tables2/" rel="nofollow">http://www.craigderington.me/django-generic-listview-with-django-filters-and-django-tables2/</a></p>

<p>My code is generating the table as well filtering it but when i click on the  search button, It gives a HTTP 405 error in the terminal and displays a blank page. Here is my code. How do i fix it to make it work?</p>

<p><strong>IssueListView Class</strong></p>

<pre><code>class IssueListView(PagedFilteredTableView):
    model = Issue
    template_name = 'issue_list.html'
    context_object_name = 'issue_list'
    ordering = ['id']
    table_class = IssueTable
    filter_class = IssueFilter
    formhelper_class = IssueListFormHelper

    def get_queryset(self):
        qs = super(IssueListView,
            self).get_queryset()
        return qs

    def post(self,request,*args,**kwargs):
        return PagedFilteredTableView.as_view()(request)


    def get_context_data(self,**kwargs):
        context = super(IssueListView,
            self).get_context_data(**kwargs)
        search_query = self.get_queryset()
        table = IssueTable(search_query)
        RequestConfig(self.request,paginate={'per_page':30}).configure(table)
        context['table'] = table
        return context
</code></pre>

<p><strong>PagedFilteredTableView class</strong></p>

<pre><code>class PagedFilteredTableView(SingleTableView):
    filter_class = None
    formhelper_class = None
    context_filter_name = 'filter'

    def get_queryset(self,**kwargs):
        qs = super(PagedFilteredTableView,
            self).get_queryset()
        self.filter = self.filter_class(self.request.GET,queryset=qs)
        self.filter.form.helper = self.formhelper_class()
        return self.filter.qs

    def get_context_data(self,**kwargs):
        context = super(PagedFilteredTableView,
            self).get_context_data()
        context[self.context_filter_name] = self.filter
        return context
</code></pre>

<p><strong>The template has the following form which contains the POST method to search the displayed table/report</strong></p>

<pre><code>&lt;form method="post" class="form-inline form-search pull-right "&gt;
  {% csrf_token %}
    &lt;div&gt;
      &lt;input id="search_form_id" name="search" type="text" class="form-control col-md-3" placeholder="ID, Name, Account #, ZIP"{% if search %} value="{{ search }}"{% endif %}&gt;
      &lt;button type="submit" class="btn btn-small btn-dark"&gt;&lt;i class="fa fa-search"&gt;&lt;/i&gt; Search&lt;/button&gt;
    &lt;/div&gt;              
&lt;/form&gt;
</code></pre>

<p>Urls.py contains the following line</p>

<pre><code>url(r'^$',views.IssueListView.as_view(),name = 'index'),
</code></pre>