我在哪里可以找到这个文件?
我尝试使用this教程,只复制粘贴大部分示例。但是,当我尝试启动此应用时,我遇到了错误:
<form action="" method="post" enctype="multipart/form-data">
<input type="file" name="tax" />
<input type="file" name="ta" />
<input type="submit" name="submit" />
</form>
<?php
//print_r($_POST);
if(isset($_POST['submit'])){
$name = $_FILES['tax']['name'];
$name1 = $_FILES['ta']['name'];
$temp_name = $_FILES['tax']['tmp_name'];
$temp_name1 = $_FILES['ta']['tmp_name'];
var_dump($_FILES);
if(isset($name)){
if(!empty($name)){
var_dump($_FILES);
$location = 'images/'.$name;
if(move_uploaded_file($temp_name, $location)){
echo 'File uploaded successfully';
}
}
} else {
echo 'You should select a file to upload !!';
}
if(isset($name1)){
if(!empty($name1)){
var_dump($_FILES);
$location = 'images/'.$name1;
if(move_uploaded_file($temp_name1, $location)){
echo 'File uploaded successfully';
}
}
} else {
echo 'You should select a file to upload !!';
}
}
?>
服务器正在尝试从http://domain.name/settings.js加载settings.js文件,但该文件不存在。这是什么?
答案 0 :(得分:1)
添加 server.py
import os
from swampdragon.swampdragon_server import run_server
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'project.settings')
run_server()
并运行python server.py