Windows wonderful django+ Mod_wsgi under cx_oracle strange problem

Source: Internet
Author: User

The project is using an Oracle database, with the Cx_oralce module starting to see the following exception thrown

[thu jul 10 16:40:54.915311 2014] [:error] [pid 28224:tid 752] [ client ::1:61859] mod_wsgi  (pid=28224):  exception occurred processing wsgi  script  ' d:/spiders/dj_spiders/dj_spiders/wsgi.py '. [thu jul 10 16:40:54.915311 2014] [:error] [pid 28224:tid 752] [ client ::1:61859] traceback  (most recent call last):[Thu Jul 10  16:40:54.916311 2014] [:error] [pid 28224:tid 752] [client ::1:61859]    File  "c:\\python27\\lib\\site-packages\\django-1.6.2-py2.7.egg\\django\\core\\handlers\\ wsgi.py ", line 187, in __call__[thu jul 10 16:40:54.919311 2014]  [:error] [pid 28224:tid 752] [client ::1:61859]      Self.load_middleware () [thu jul 10 16:40:54.919311 2014]&nbsp [:error] [pid 28224:tid 752] [client ::1:61859]   file  "C:\\ Python27\\lib\\site-packages\\django-1.6.2-py2.7.egg\\django\\core\\handlers\\base.py ",  line 49,  in load_middleware[thu jul 10 16:40:54.920311 2014] [:error] [pid  28224:tid 752] [client ::1:61859]     mw_instance = mw _class () [thu jul 10 16:40:54.920311 2014] [:error] [pid 28224:tid 752]  [client ::1:61859]   File  "c:\\python27\\lib\\site-packages\\ django-1.6.2-py2.7.egg\\django\\middleware\\transaction.py ",  line 18, in __init__[thu  jul 10 16:40:54.920311 2014] [:error] [pid 28224:tid 752] [ client ::1:61859]     if connection.settings_dict[' ATOMIC_REQUESTS ']:[Thu  jul 10 16:40:54.920311 2014] [:error] [pid 28224:tid 752] [client ::1:61859]   file  "C : \\Python27\\lib\\site-packages\\django-1.6.2-py2.7.egg\\django\\db\\__init__.py ",  line 34, in  __getattr__[thu jul 10 16:40:54.925311 2014] [:error] [pid 28224:tid  752] [client ::1:61859]     return getattr (connections[DEFAULT_ Db_alias], item) [thu jul 10 16:40:54.925311 2014] [:error] [pid 28224: tid 752] [client ::1:61859]   file  "c:\\python27\\lib\\site-packages\\ django-1.6.2-py2.7.egg\\django\\db\\utils.py ", line 198, in __getitem__[thu jul  10 16:40:54.925311 2014] [:error] [pid 28224:tid 752] [client : : 1:61859]     backend = load_backend (db[' ENGINE ') [thu jul 10  16:40:54.925311 2014] [:error] [pid 28224:tid 752] [client ::1:61859]   file  "C : \\Python27\\lib\\site-packages\\django-1.6.2-py2.7.egg\\django\\db\\utils.py ",  line 113, in  load_backend[thu jul 10 16:40:54.925311 2014] [:error] [pid 28224:tid  752] [client ::1:61859]     return import_module ('%s.base '   % backend_name) [thu jul 10 16:40:54.925311 2014] [:error] [pid 28224: tid 752] [client ::1:61859]   file  "c:\\python27\\lib\\site-packages\\ django-1.6.2-py2.7.egg\\django\\utils\\importlib.py ", line 40, in import_module[thu  Jul 10 16:40:54.929311 2014] [:error] [pid 28224:tid 752] [client &NBSP;::1:61859]&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;__IMPORT__ (name) [thu jul 10 16:40:54.929311  2014] [:error] [pid 28224:tid 752] [client ::1:61859]   file  "C:\\Python27\\lib\\ site-packages\\django-1.6.2-py2.7.egg\\django\\db\\backends\\oracle\\base.py ",  line 45, in  <module>[thu jul 10 16:40:54.929311 2014] [:error] [pid 28224: Tid 752] [client ::1:61859]     raise improperlyconfigured ("Error  loading cx_oracle module: %s " % e) [thu jul 10 16:40:54.929311  2014] [:error] [pid 28224:tid 752] [client ::1:61859]  unicodedecodeerror:  ' ASCII '  codec can ' t decode byte 0xd5 in position  17: ordinal not in range (128)

Juvenile, re-installed under the cx_oracle can be solved


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.