Thank you very much, Bryan. I tried chmod -R 777 on everything and I
still get the same error message.

On Oct 28, 9:44 am, "Bryan Murdock" <[EMAIL PROTECTED]> wrote:
> One thing I noticed when I set up sqlite was that the apache user had
> to have full permissions on both the database file and the directory
> where the file was contained.  I don't remember the exact errors I got
> back when I had that problem, but figured I'd throw out my experience.
>
> Bryan
>
> On 10/26/06, 735115 <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hello,
>
> > I've been able to get a Django app on Linux running using the built-in
> > development server by running:
>
> > # python manage.py runserver
>
> > However, I've been trying for hours now trying to set up Apache +
> > mod_python, but I keep getting the same "SystemError: NULL result
> > without error in PyObject_Call" error from Django's sqlite3 backend.
> > Here's my configuration:
>
> > Django 0.95
> > sqlite 3.3.8
> > pysqlite 2.3.2
> > Apache 2.0.53
> > Python 2.3.4
> > Fedora Core 3
>
> > This is how I set up my Apache .conf file:
>
> > Alias /dj /home/bh/web/django
> > <Directory /home/bh/web/django>
> >     SetHandler python-program
> >     PythonHandler django.core.handlers.modpython
> >     SetEnv DJANGO_SETTINGS_MODULE myapp.settings
> >     PythonDebug On
> >     PythonPath "['/home/bh/web/django'] + sys.path"
> > </Directory>
>
> > Accessing my /dj directory from Firefox, I get this error message:
>
> > ===============
>
> > Mod_python error: "PythonHandler django.core.handlers.modpython"
>
> > Traceback (most recent call last):
>
> >   File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line
> > 299, in HandlerDispatch
> >     result = object(req)
>
> >   File
> > "/usr/lib/python2.3/site-packages/Django-0.95-py2.3.egg/django/core/handlers/modpython.py",
> > line 163, in handler
> >     return ModPythonHandler()(req)
>
> >   File
> > "/usr/lib/python2.3/site-packages/Django-0.95-py2.3.egg/django/core/handlers/modpython.py",
> > line 140, in __call__
> >     response = middleware_method(request, response)
>
> >   File
> > "/usr/lib/python2.3/site-packages/Django-0.95-py2.3.egg/django/contrib/sessions/middleware.py",
> > line 81, in process_response
> >     session_key = request.session.session_key or
> > Session.objects.get_new_session_key()
>
> >   File
> > "/usr/lib/python2.3/site-packages/Django-0.95-py2.3.egg/django/contrib/sessions/models.py",
> > line 21, in get_new_session_key
> >     self.get(session_key=session_key)
>
> >   File
> > "/usr/lib/python2.3/site-packages/Django-0.95-py2.3.egg/django/db/models/manager.py",
> > line 67, in get
> >     return self.get_query_set().get(*args, **kwargs)
>
> >   File
> > "/usr/lib/python2.3/site-packages/Django-0.95-py2.3.egg/django/db/models/query.py",
> > line 211, in get
> >     obj_list = list(clone)
>
> >   File
> > "/usr/lib/python2.3/site-packages/Django-0.95-py2.3.egg/django/db/models/query.py",
> > line 103, in __iter__
> >     return iter(self._get_data())
>
> >   File
> > "/usr/lib/python2.3/site-packages/Django-0.95-py2.3.egg/django/db/models/query.py",
> > line 430, in _get_data
> >     self._result_cache = list(self.iterator())
>
> >   File
> > "/usr/lib/python2.3/site-packages/Django-0.95-py2.3.egg/django/db/models/query.py",
> > line 170, in iterator
> >     cursor = connection.cursor()
>
> >   File
> > "/usr/lib/python2.3/site-packages/Django-0.95-py2.3.egg/django/db/backends/sqlite3/base.py",
> > line 45, in cursor
> >     detect_types=Database.PARSE_DECLTYPES | Database.PARSE_COLNAMES)
>
> > SystemError: NULL result without error in PyObject_Call
>
> > ===============
>
> > I am totally lost and could not find any similar problems anywhere on
> > the web. Any pointers? Please let me know if I should clarify anything.
> 
> > Thanks in advance,
> >Bryant


--~--~---------~--~----~------------~-------~--~----~
 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to