#14138: Apache setup using sqlite3 breaks when performing a field__regex filter
--------------------------------------------------------+-------------------
Reporter: eternicode | Owner:
nobody
Status: closed | Milestone:
Component: Database layer (models, ORM) | Version: 1.2
Resolution: worksforme | Keywords:
sqlite3 apache operationalerror databaseerror regex
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 |
--------------------------------------------------------+-------------------
Comment (by Sashan <anedvedicky@…>):
Replying to [comment:4 Sashan <anedvedicky@…>]:
> Replying to [comment:3 PaulM]:
> >
> > "For an interface to SQLite 3, see the package python-pysqlite1.1,
python-pysqlite2 or python-apsw."
> >
> > -http://packages.debian.org/wheezy/python-sqlite
>
> sure you were right, thanks for your help.
sorry - still no success, once I've cleaned thy .pyc files I got same
error, even though python-pysqlite2 package
is installed.
the apache error log says:
[Thu Feb 10 22:53:18 2011] [error]
/usr/lib/pymodules/python2.6/django/db/backends/sqlite3/base.py:243:
RuntimeWarning: Parent module 'dango.db.backends.sqlite3' not found while
handling absolute import
[Thu Feb 10 22:53:18 2011] [error] import re
looks like environment is somehow screwed:
the python path is content is as follows:
[ '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2',
'/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old',
'/usr/lib/python2.6/lib-dynload', '/usr/local/lib/python2.6/dist-
packages', '/usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-
packages/PIL', '/usr/lib/pymodules/python2.6', '/srv/parliament-poll-
stats/' ]
the last path is location of my django-site. django is installed in
/usr/lib/pymodules/python2.6/
even if I workaround the problem with 'import re' I will get stuck in {%
url %}, which complains on ImportError if some urls module, which is part
of my project.
looks like it is a problem of Debian, not django.
--
Ticket URL: <http://code.djangoproject.com/ticket/14138#comment:5>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.