title: Popup window django after form submission
body: <p>How do I have a popup box appear after someone has submitted a form?  For example after submitting a form, I want a popup box to appear saying "Successfully submitted".  The way I have the view now is that it just redirects to a page saying "Successfully submitted".  Instead of this I want a popup window to appear with the form in the background.</p>
  
  <pre><code>def addDog(request):
    if request.method == "POST":
      form = DogForm(request.POST)
      if form.is_valid():
        post = form.save(commit=False)
        post.save()
        return HttpResponse("Successfully submitted")
      else:
        print("Unable to save. Form is not valid")
        print(form.errors)
    else:
      form = DogForm()
    return render(request, "app/addDog.html", {"form":form})
  </code></pre>