title: How can I avoid a redirection to the home page when I logout on django?
body: <p>I'm working on a website for an internship. I've implemented a logout button but when I logout, after the user deconnection, I have a redirection on the home page, but I don't want this, for example if I'm in  <code>url.com/toto/tata</code>, after the logout I would like to stay in this path and not have a rediction to <code>url.com/home</code>. </p>
  
  <pre><code>&lt;form method="POST" action="{% url "account_logout" %}" class="form-horizontal"&gt;
      {% csrf_token %}                                     
      &lt;div class="form-actions"&gt;
          &lt;button type="submit"&gt;Logout&lt;/button&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>