Nginx+uWSGI+django
摘要:wgethttps://bootstrap.pypa.io/ez_setup.py-O - | python安装setuptoolsunzip setuptools-5.8.zipcd setuptools-5.8/usr/local/python-3.3/bin/python3.3 setup.p...
阅读全文
posted @
2014-09-22 14:37
凌度
阅读(1918)
推荐(0)
phonegap 解决https访问问题
摘要:ios报错在AppDelegate.m文件在最后加入(在@end后面加空行):@implementation NSURLRequest(DataController) + (BOOL)allowsAnyHTTPSCertificateForHost:(NSString *)host { retu...
阅读全文
posted @
2014-09-19 18:03
凌度
阅读(2938)
推荐(0)
Nginx安装配置
摘要:安装 1、安装pcre支持正则表达式 wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.35.tar.gztar zxvf pcre-7.7.tar.gzcd pcre-7.7./configuremakemake i
阅读全文
posted @
2014-09-17 14:15
凌度
阅读(346)
推荐(0)
django的settings.py设置static
摘要:DEBUG = True################ STATICFILES ################# A list of locations of additional static filesSTATICFILES_DIRS = ( os.path.join(BASE_DIR...
阅读全文
posted @
2014-08-06 18:53
凌度
阅读(2331)
推荐(0)
django的settings.py设置session
摘要:############# SESSIONS #############SESSION_CACHE_ALIAS = 'default' # Cache to store session data if using the cache session b...
阅读全文
posted @
2014-08-06 18:52
凌度
阅读(3290)
推荐(0)
解决django不能以本机ip地址访问
摘要:在使用django框架来架设网站时,我们测试一般是通过django的开发服务器来完成,但是我们可以看到生成的地址是127.0.0.1:8000这样的话,我们在外网就无法访问了。解决办法是通过传入第三个参数来解决这个问题:./manage.py runserver 0.0.0.0:8000开启djan...
阅读全文
posted @
2014-07-31 14:55
凌度
阅读(802)
推荐(0)
[转]eclipse 设置默认编码为Utf-8
摘要:参考:http://www.cnblogs.com/yimu/archive/2011/06/30/SXLYLOVE.html需要设置的几处地方为:Window->Preferences->General ->Content Type->Text->JSP 最下面设置为UTF-8Window->Pr...
阅读全文
posted @
2014-07-31 14:16
凌度
阅读(615)
推荐(0)
WSGI、flup、fastcgi、web.py的关系
摘要:来源:http://www.douban.com/note/13508388/pache/lighttpd: 相当于一个request proxy,根据配置,把不同的请求转发给不同的server处理,例如静态的文件请求自己处理,这个时候它就像一个web server,对于fastcgi/python...
阅读全文
posted @
2014-07-22 10:27
凌度
阅读(267)
推荐(1)
MySQL-python 安装
摘要:https://pypi.python.org/pypi/MySQL-python/1.2.5wget https://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.5.zip --no-check-certifica...
阅读全文
posted @
2014-07-21 16:07
凌度
阅读(300)
推荐(0)
windows下python访问ipv6报错
摘要:错误Traceback (most recent call last): File "test.py", line 11, in app.run() File "D:\dev\Python27\lib\site-packages\web\application.py", line 313...
阅读全文
posted @
2014-07-21 12:26
凌度
阅读(1375)
推荐(0)
windows下python的包管理器pip安装
摘要:pip:A tool for installing and managing Python packages.要用到第三方包,python的版本就必须是2.7https://pypi.python.org/pypi/setuptools#downloadspython ez_setup.pyhttp...
阅读全文
posted @
2014-07-21 11:03
凌度
阅读(9249)
推荐(0)
python添加windows域验证
摘要:1、安装python-ldaphttps://pypi.python.org/pypi/python-ldap/在 Ubuntu/Debian 下安装 python-ldap 模块:$ sudo apt-get install python-ldap在 CentOS/RHEL 下安装 python-...
阅读全文
posted @
2014-07-17 14:49
凌度
阅读(1497)
推荐(0)