1.创建工程temp,创建应用test01app,在应用test01app下创建一个文件存放目录temp_file。这里创建工程和应用就不再啰嗦新手第一天请看我的其他文章有从入门级到实例
2.编写文件上传页面upload.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Monkey测试结果检测</title>
</head>
<body>
<form method="post" action="" enctype="multipart/form-data">
{% csrf_token %}
<h1>Monkey 测试</h1><small>monkey_test</small><br>
请输入测试执行人:<input type="text" name="people"><br>
请输入测试 版本 :<input type="text" name="version"><br>
请上传monkey日志文件:<br>
<input type="file" name="myfile"><br>
<input type="submit" value="上传">
</form>
<h1>分析结果:</h1><hr>
<table border="1">
<thead>
<tr>
<td>ID</td>
<td>测试执行人</td>