![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
django
Liteboy
这个作者很懒,什么都没留下…
展开
-
_mysql_exceptions.OperationalError: **(2002, "Can't connect to local MySQL server through socket '/v
在linux下安装django的时候,python manage.py syncdb 报错, Validating models... Unhandled exception in thread started by bound method Command.inner_run of django.contrib.staticfiles.management.commands.runser原创 2013-09-12 17:14:39 · 5996 阅读 · 0 评论 -
nvalid command 'PythonPath', perhaps misspelled or defined by a module not included in the server co
在linux下安装django的遇到的错误 [root@localhost httpd]# /etc/init.d/apache2 start Syntax error on line 47 of /usr/local/apache/conf/extra/httpd-vhosts.conf: Invalid command 'PythonPath', perhaps misspelled原创 2013-09-12 17:26:57 · 4565 阅读 · 0 评论 -
Linux下Python获取IP地址的代码
获取服务器IP,如果有公网地址就取公网地址,没有公网地址就取私网网址 下面是之前我用shell来获取本地IP脚本: IP=`ifconfig | grep 'inet addr:' | cut -d: -f2 | grep -v ^10\. | grep -v ^192\.168 | grep -v ^172\. | \ grep -v ^127\. | awk '{print $1}' |原创 2014-11-30 22:00:35 · 3348 阅读 · 0 评论