属性错误:模块' volga.views'没有属性'添加'

时间:2018-06-05 21:05:16

标签: django django-models django-forms django-templates django-rest-framework

它的Django,我已经放了html文件,但是当我运行服务器时,它会显示属性错误。模块' volga.views'没有属性'添加'

$curl_handle=curl_init();
curl_setopt($curl_handle, CURLOPT_URL,'https://maps.googleapis.com/maps/api/place/textsearch/json?query=restaurants+in+Sydney&key='.API_KEY);
curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 2);
curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl_handle, CURLOPT_USERAGENT, 'Your application name');
$query = curl_exec($curl_handle);
curl_close($curl_handle);

echo $query;

0 个答案:

没有答案