Hi Folks,

I'm using PostgreSQL for my local database, but my application connects
to a number of other databases to do some queries. I have written a DB
abstraction module which I use to connect to PostgreSQL, MySQL and
Oracle, which has worked fine for me in all situations (Django and
otherwise) that I've used it for to date.

I have been testing on an Ubuntu desktop and my app works fine, but
I've now migrated it to Fedora Core 3 where it will be in production
and I'm having problems. I think the problem is related to the fact
that I have custom RPMs for MySQL (using the 5.0 ones for RHEL3 from
MySQL's website), but am using the generic MySQL-python RPM for FC3.

If I'm on the command line, I can do this:

from myproject.utils.DB import DB
mysqlconn = DB(DB_TYPE, DB_NAME, DB_HOST, DB_PORT, DB_USER, DB_PASS)

and run queries like this

mysqlconn.DictResult(sql)

But from within Django if I try to import the module, it just returns
no output, or rather I get this:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN"><html><head><title></title></head><body></body></html>

Can anyone help me out with how to troubleshoot what's going on here,
since the import does work from the command line, I've checked the
permissions for everything, and it works fine, and it also works fine
in my dev environment, just not in production??

Thanks, Tom


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to