- 博客(6)
- 资源 (3)
- 收藏
- 关注
原创 django oracle 配置问题
ImproperlyConfigured: Error loading cx_Oracle module: libclntsh.so.11.1: cannot open shared object file: No such file or directory出现这种问题,在/etc/profile 里边添加 export LD_LIBRARY_PATH=/usr/lib/
2016-05-27 16:24:47 604
原创 django oracle 配置
django.db.utils.DatabaseError: ORA-12505: TNS:listener does not currently know of SID given in connect descriptor这个问题的出现。是因为 HOST 没有加上SIDDATABASES = { 'default': {
2016-05-26 16:48:11 882
原创 django 添加 app 路径问题
SETTINGS_DIR = os.path.dirname(__file__)APP_PATH = os.path.join(SETTINGS_DIR, 'apps')if APP_PATH not in sys.path: sys.path.insert(0, APP_PATH)这一段是添加在setting.py 文件上。这样就可以解决] ImportError: No mo
2016-05-26 11:18:14 1660
原创 django 消息模块 (messages ) 的使用
django 使用消息模块,要注意的是,返回的render_to_response 需要加上context_instance具体的:from django.contrib import messagesfrom django.shortcuts import render_to_response,RequestContextfrom django.template import
2016-05-13 10:45:15 4294
原创 python 列表解析 列表中的列表append问题
stackoverflow 的解释list.append mutates the list itself and returns None. List comprehensions are for storing the result, which isn't what you want in this case if you want to just change the o
2016-05-06 09:51:04 821
原创 python cx_oracle 取回数据后 LOB variable no longer valid after subsequent fetch
问题如题:python cx_oracle 取回数据后 LOB variable no longer valid after subsequent fetch解决方法:for fetch in cr.fethall(): fetch如此处理就好了。。。
2016-05-03 16:28:47 3550 1
解决error: Unable to find vcvarsall.bat
2016-04-26
cx_oracle python27 dll 文件
2015-12-09
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人