title: Context Not Printing Django
body: <p>I'm aware my issue may be to lack of Django knowledge, but I'm trying to pass user input from one form in a view, to another view which will then render that view's HTML page with the given input.</p>
  
  <p>I'm redirected fine, but the data is not being displayed. I believe it has something to do with the contexts not being passed properly, but I do not understand what is wrong or how to fix it.</p>
  
  <p><code>views.py</code></p>
  
  <pre><code>def home_view(request, *args, **kwargs):
      print(args, kwargs)
      print(request.user)
      if request.method == 'POST':
          form2 = PostForm(request.POST)
          if form2.is_valid():
              post = form2.save(commit=False)
              post.poster = request.user
              post.content = form2.cleaned_data.get('content')
              post.title = form2.cleaned_data.get('title')
              post.syntax = form2.cleaned_data.get('syntax')
              post.public = form2.cleaned_data.get('public')
              rand = str(uuid.uuid4())[:6]
              while Paste.objects.filter(generated_url=rand):
                  rand = str(uuid.uuid4())[:6]
              post.generated_url = rand
              form2.save()
              context = {
                  "poster_name": post.poster,
                  "paste_contents": post.content,
                  "paste_title": post.title,
                  "paste_syntax": post.syntax,
                  "paste_visible": post.public
              }
              return HttpResponseRedirect(reverse('details', args=(post.generated_url,)), context)
      else:
          form2 = PostForm()
  
      return render(request, "home.html", {'form2': form2})
  def detail_view(request, *args, **kwargs):
  
      if request.user.is_authenticated:
          if request.method=='POST':
              form3 = PostForm(request.POST)
              url = form3.generated_url
              your_posts = Paste.objects.get(url)
              context = {
                  'form3': form3
              }
              return render(request, "paste_detail.html", context)
  
      return render(request, "paste_detail.html", {'form3': form3})
  </code></pre>
  
  <p><code>home.html</code></p>
  
  <pre><code>{% extends "base.html" %}
  
  {% block content %}
  &lt;h1&gt;Your user is {{ request.user }}&lt;/h1&gt;
  &lt;div class="submit_form"&gt;
  &lt;form action="" method="POST"&gt;
    {% csrf_token %}
    {{ form2.as_p }}&lt;br&gt;
    &lt;input type="submit" name="submit" value="Paste" id="submit"&gt;
  &lt;/div&gt;
  
  {% endblock content %}
  </code></pre>
  
  <p>And <code>paste_detail.html</code></p>
  
  <pre><code>{% extends "base.html" %}
  {% block content %}
  &lt;!--&lt;h1&gt;Name of post: {{ post.title }}&lt;/h1&gt;--&gt;
  
  &lt;p&gt;Content of post:&lt;/p&gt;
  I AM REDIRECTED
  &lt;h1&gt;Name of post: {{ form2.title }}&lt;/h1&gt;
  
  &lt;p&gt;Content of post:&lt;/p&gt;
  
  &lt;p&gt;{{form3.content|linebreaks}}&lt;/p&gt;
  {{ form3.poster }}
  {{ form3.contents }}
  {{ form3.title }}
  {{ form3.syntax }}
  {{ form3.visible }}
  {% endblock %}
  </code></pre>
  
  <p>edit:</p>
  
  <p><code>views.py</code></p>
  
  <pre><code>def home_view(request, *args, **kwargs):
  
      if request.method == 'POST':
          form2 = PostForm(request.POST)
          if form2.is_valid():
              post = form2.save(commit=False)
              post.poster = request.user
              post.save()
              rand = str(uuid.uuid4())[:6]
              while Paste.objects.filter(generated_url=rand):
                  rand = str(uuid.uuid4())[:6]
              post.generated_url = rand
          #    return HttpResponseRedirect(reverse('details', args=(post.generated_url,)), context)
              return redirect('detail', rand)
      else:
          form2 = PostForm()
  
      return render(request, "home.html", {'form2': form2})
  def detail_view(request, custom_uuid):
  
      post = get_object_or_404(Paste, pk=pk)
      return render(request, "paste_detail.html", {'post': post})
      #return render(request, "paste_detail.html", {'form3': form3})
  </code></pre>
  
  <p><code>paste_detail.html</code></p>
  
  <pre><code>{% extends "base.html" %}
  {% block content %}
  
  
  &lt;p&gt;Content of post:&lt;/p&gt;
  I AM REDIRECTED
  
  &lt;h1&gt;Name of post: {{ post.title }}&lt;/h1&gt;
  
  
  
  &lt;p&gt;Creator of post:&lt;/p&gt; {{ post.poster }}
  &lt;p&gt;Content of post:&lt;/p&gt; {{ post.content }}
  &lt;p&gt;Title of post:&lt;/p&gt; {{ post.title }}
  {{ post.syntax }}
  {{ post.visible }}
  {% endblock %}
  </code></pre>
  
  <p>And <code>urls.py</code></p>
  
  <pre><code>...
  urlpatterns = [
      path('home/', home_view, name='home'),
      path('contact/', contact_view, name='contact'),
      path('admin/', admin.site.urls, name='admin'),
      path('about/', about_view, name='about'),
      url(r'^signup/$', views.signup, name='signup'),
      path('paste_list/', paste_list_view, name='paste_list'),
      url(r'^$', home_view),
      #url(r'^(?P&lt;rand_url&gt;\S{6})/$', detail_view, name='details'),
      path('detail/&lt;str:custom_uuid&gt;/', detail_view, name='detail'),
      path('accounts/', include('django.contrib.auth.urls')),
  ]
  </code></pre>