Re: Oracle 11g + mod_wsgi + Apache + Django on Windows 2003 does not work

2009-07-30 Thread tcpipmen

thanks for your reply.  i removed oracle 11g and installed 10g
express. uninstalled python 2.6 and everything related.  and now it is
working. so i'm not sure it has to do with 11g???  i just need to test
with 11g again in current setup.

regards,

On Jul 30, 5:23 pm, Xiong Chiamiov  wrote:
> On Jul 29, 11:57 am, tcpipmen  wrote:
>
> > Hi All, I have no problem running Oracle 11g with django on build-in
> > development server and everything is fine.  But When I setup with
> > mod_wsgi with Apache I'm getting messages like below
> [snip]
> > The specified module could not be found.
>
> I'm not quite sure how this works on Windows, but Apache is probably
> running as a different user (rather than as you).  This means that it
> has its own set of environment variables, including PATH and
> PYTHONPATH, which are likely to not include the directory your module
> is in.  I'm afraid I can't tell you how you would go about checking or
> fixing that, however, but perhaps it'll get you off to the right start.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Oracle 11g + mod_wsgi + Apache + Django on Windows 2003 does not work

2009-07-29 Thread tcpipmen

Hi All, I have no problem running Oracle 11g with django on build-in
development server and everything is fine.  But When I setup with
mod_wsgi with Apache I'm getting messages like below. I'm using python
2.6 and installed cx_Oracle-5.0.2-11g.win32-py2.6.msi.  ORACLE_HOME is
set to "C:\app\Administrator\product\11.1.0\db_1". From python console
I can do "import cx_Oracle" and it is also fine.  Any kind of help is
greatly appreciated.

Thanks so much,
AM.



[Wed Jul 29 14:39:05 2009] [error] [client 127.0.0.1] mod_wsgi
(pid=2312): Exception occurred processing WSGI script 'C:/
django_projects/oracle/apache/django.wsgi'.
[Wed Jul 29 14:39:05 2009] [error] [client 127.0.0.1] Traceback (most
recent call last):
[Wed Jul 29 14:39:05 2009] [error] [client 127.0.0.1]   File "C:\
\Python26\\lib\\site-packages\\django\\core\\handlers\\wsgi.py", line
239, in __call__
[Wed Jul 29 14:39:05 2009] [error] [client 127.0.0.1] response =
self.get_response(request)
[Wed Jul 29 14:39:05 2009] [error] [client 127.0.0.1]   File "C:\
\Python26\\lib\\site-packages\\django\\core\\handlers\\base.py", line
67, in get_response
[Wed Jul 29 14:39:05 2009] [error] [client 127.0.0.1] response =
middleware_method(request)
[Wed Jul 29 14:39:05 2009] [error] [client 127.0.0.1]   File "C:\
\Python26\\lib\\site-packages\\django\\contrib\\sessions\
\middleware.py", line 9, in process_request
[Wed Jul 29 14:39:05 2009] [error] [client 127.0.0.1] engine =
__import__(settings.SESSION_ENGINE, {}, {}, [''])
[Wed Jul 29 14:39:05 2009] [error] [client 127.0.0.1]   File "C:\
\Python26\\lib\\site-packages\\django\\contrib\\sessions\\backends\
\db.py", line 2, in 
[Wed Jul 29 14:39:05 2009] [error] [client 127.0.0.1] from
django.contrib.sessions.models import Session
[Wed Jul 29 14:39:05 2009] [error] [client 127.0.0.1]   File "C:\
\Python26\\lib\\site-packages\\django\\contrib\\sessions\\models.py",
line 4, in 
[Wed Jul 29 14:39:05 2009] [error] [client 127.0.0.1] from
django.db import models
[Wed Jul 29 14:39:05 2009] [error] [client 127.0.0.1]   File "C:\
\Python26\\lib\\site-packages\\django\\db\\__init__.py", line 16, in

[Wed Jul 29 14:39:05 2009] [error] [client 127.0.0.1] backend =
__import__('%s%s.base' % (_import_path, settings.DATABASE_ENGINE), {},
{}, [''])
[Wed Jul 29 14:39:05 2009] [error] [client 127.0.0.1]   File "C:\
\Python26\\lib\\site-packages\\django\\db\\backends\\oracle\\base.py",
line 17, in 
[Wed Jul 29 14:39:05 2009] [error] [client 127.0.0.1] raise
ImproperlyConfigured("Error loading cx_Oracle module: %s" % e)
[Wed Jul 29 14:39:05 2009] [error] [client 127.0.0.1]
ImproperlyConfigured: Error loading cx_Oracle module: DLL load failed:
The specified module could not be found.



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---