当我尝试打开django管理面板时,显示此错误
ImportError at /admin/
failed to find libmagic. Check your installation
Request Method: GET
Request URL: Django Version: 1.5.1
Exception Type: ImportError
Exception Value: failed to find libmagic. Check your installation
Exception Location: C:\Python27\lib\site-packages\magic.py in <module>, line 131
Python Executable: C:\Python27\python.exe
Python Version: 2.7.2
Python Path:
['C:\\Users\\farhan\\Downloads\\dist\\Django-1.5.1\\django\\bin\\mysite',
'C:\\Python27\\lib\\site-packages\\distribute-0.6.49-py2.7.egg',
'C:\\Windows\\system32\\python27.zip',
'C:\\Python27\\DLLs',
'C:\\Python27\\lib',
'C:\\Python27\\lib\\plat-win',
'C:\\Python27\\lib\\lib-tk',
'C:\\Python27',
'C:\\Python27\\lib\\site-packages',
'C:\\Python27\\lib\\site-packages\\setuptools-0.6c11-py2.7.egg-info']
Server time: Thu, 22 Aug 2013 13:19:01 +0600
Run Code Online (Sandbox Code Playgroud)
这是我的追溯
嘿,我正在使用xampp并尝试运行localhost,但在connect.php中不断收到错误...错误如下
致命错误:未被捕获的错误:调用C:\ xampp \ htdocs \ admin panel \ connect.php:9中未定义的函数mysql_connect()堆栈跟踪:#0 C:\ xampp \ htdocs \ admin panel \ index.php(16) :include()#1 {main}在第9行的C:\ xampp \ htdocs \ admin panel \ connect.php中抛出
我的connect.php代码如下
<?php
$servername = "localhost";
$username = "root";
$password = "";
mysqli_connect($servername,$username,$password) or die('cannot connect to
the server');
?>
Run Code Online (Sandbox Code Playgroud)
这个你能帮我吗。
在这里,我在使用 ng-infinite-scroll 时遇到了一些问题。当我 ng-infinite-scroll-distance 时,它实际上不起作用。此外,所有数据都已加载,但无法禁用 ng-infinite-scroll?
<div class="row-fluid" infinite-scroll-distance="2" infinite-scroll="self.loadMore(self.friendList)" >
Run Code Online (Sandbox Code Playgroud)
如何禁用无限滚动?
angularjs ×1
django ×1
django-admin ×1
ecmascript-6 ×1
javascript ×1
jquery ×1
php ×1
python ×1