title: Trying to pass form from generic.FormView to generic.DetailView
body: <p>I'm new in Django and it's just a test for further model. I'm trying to pass a form from generic.FormView to generic.DetailView, and exhibit the datas inserted in the previous HTML (associated with the FormView) to another HTML (associated with the DetailView). I've thought it probably a problem with the link between the view.py and urls.py. The codes are:</p>
  
  <p>views.py:</p>
  
  <pre><code>class IndexView(generic.FormView):
      template_name = 'dutos/index.html'
      form_class = GetDate
      success_url = 'dutos/detail.html'
  
      #def form_valid(self, form):                                   
         #return HttpResponse(self.success_url)
         #return super.form_valid(form)
  
  class DetailView(generic.DetailView):
      model = Dutos
      template_name = 'dutos/detail.html'
  </code></pre>
  
  <p>forms.py</p>
  
  <pre><code>class GetDate(forms.Form):
      dateDataInicial = forms.DateTimeField(label='dataInicial', initial=datetime.now().strftime("%d/%m/%Y %H:%M:%S"), required=False)
      dateDataFinal = forms.DateTimeField(label='dataFinal', initial=datetime.now().strftime("%d/%m/%Y %H:%M:%S"), required=False)
  </code></pre>
  
  <p>urls.py:</p>
  
  <pre><code>from django.urls import path
  from .views import views
  
  urlpatterns = [
      path('', views.IndexView.as_view(), name="index"),
      path('detail/', views.DetailView.as_view(), name="detail"),
  ]
  </code></pre>
  
  <p>index.html:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Template&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;h1&gt;Teste HTML&lt;/h1&gt;
  &lt;div class="container-fluid" id="wrapper"&gt;
      &lt;div class="row"&gt;
          &lt;form action="/detail/" method="post"&gt;
              {% csrf_token %}
              {{ form.non_field_errors }}
              &lt;div&gt;
                  &lt;div class="fieldWrapper"&gt;
                      {{ form.dateDataInicial.errors }}
                      &lt;label for="{{ form.dateDataInicial }} Data Inicial: &lt;/label&gt;
                      {{ form.dateDataInicial }}
                  &lt;/div&gt;
                  &lt;div class="fieldWrapper"&gt;
                      {{ form.dateDataFinal.errors }}
                      &lt;label for="{{ form.dateDataFinal }} Data Final: &lt;/label&gt;
                      {{ form.dateDataFinal }}
                  &lt;/div&gt;
              &lt;input type="submit" value="Pesquisar"&gt;
              &lt;/div&gt;
          &lt;/form&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>detail.html:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Template&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;h1&gt;Template HTML&lt;/h1&gt;
  {{form.cleaned_data['dateDataInicial']}}
  {{form.cleaned_data['dateDataFinal']}}
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I've already change the "{{form.cleaned_data['dateDataInicial']}}" to "form.dateDataInicial", or just cleaned everything and put "Test" to exhibit a simples HTML. I'm getting HTTP Error 405.</p>