Hi,
I read the mod_python documentation on the Django site but I'm getting
this error:
EnvironmentError: Could not import DJANGO_SETTINGS_MODULE
'accesshiphop.settings' (is it on sys.path?): No module named
accesshiphop.settings
Here's my httpd.conf:
PythonPath "[r'c:/apache/public_html/my
I tried using the path "c:\ex1.db" and it worked. I was using "ex1.db"
before.
Thanks everyone for the help. This is a great community and maybe next
time I will ask a harder question :)
--
http://mail.python.org/mailman/listinfo/python-list
my bad. that was the wrong code, here is my code:
from pysqlite2 import dbapi2 as sqlite
con = sqlite.connect("ex1")
cur = con.cursor()
cur.execute("select * from tbl1")
print cur.fetchall()
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
I'm getting the following error:
pysqlite2.dbapi2.OperationalError: no such table: tbl1
Here's my code:
from pysqlite2 import dbapi2 as sqlite
con = sqlite.connect(":memory:", detect_types=sqlite.PARSE_COLNAMES)
cur = con.cursor()
cur.execute("select * from tbl1")
data = cursor.fetchall(