Source

meblog / templates / admin / upload.html

{% extends 'admin/base.html' %}

{% block content %}
	<form action="{{ upload_url }}" method="POST" enctype="multipart/form-data">
	{% if upload_error %}<span>{{ upload_error }}</span>{% endif %}

	{{ form.as_p }}
	<p>
	<label for="fileupload">Upload Media :</label>
	<input type="file" id="media" name="media"><br>
	</p>
	<p>
	<input class="submit" type="submit" name="submit" value="Upload">
	</p>
	</form>
{% endblock %}