django_project_demo/app/templates/upload_list.html

24 lines
739 B
HTML
Raw Normal View History

2024-08-24 11:25:23 +08:00
{% extends 'layout.html' %}
{% load static %}
{% block content %}
<div class="container">
<div class="panel panel-default">
<div class="panel-heading">
<span class="glyphicon glyphicon-th-list" aria-hidden="true"></span>
普通文件上传,不含其他表单数据
</div>
<div class="panel-body">
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
<input type="text" name="username"/>
<input type="file" name="avator"/>
<input type="submit" value="上传">
</form>
</div>
</div>
</div>
{% endblock %}