{% extends "base.html" %}
{% block body %}
  <form enctype="multipart/form-data" action="{% url upload-file %}"
        method="POST" id="login_form">
  {% csrf_token %}

  {{ form }}
  <input type="submit" value="Upload extension">
</form>
{% endblock %}

{% extends "base.html" %}
{% block body %}
  <form enctype="multipart/form-data" action=""
        method="POST" id="login_form">
  {% csrf_token %}

  {{ form }}
  <input type="submit" value="Upload extension">
</form>
{% endblock %}

Make upload form more general.
Make upload form more general.

According to the HTML5 spec, leaving 'action' blank will submit
the form data to the current URL.
