24 lines
739 B
HTML
24 lines
739 B
HTML
|
{% 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 %}
|