I've hit the same problem :(
after searching on this group and net I found that
curently django dosen't work well with sqlite.

Try to use mysql or psql




On 8/24/06, Wiktor Grębla <[EMAIL PROTECTED]> wrote:

Hi.

Today I've been trying (preparing) to switch from my testing
configuration (lighttpd+flup+django-fastcgi) to apache+mod_python, so
far without success .

From my point of view, there is something wrong happening between
sqlite and mod_python, but the error messages look enigmatic. I've
checked on both django 0.95 and svn version.

First, my configuration:

apache2.conf:

<Location "/djangoblog/">
     PythonPath "['/home/greblus/Programowanie/django/',
'/home/greblus/local/django_src/'] + sys.path"
     SetHandler python-program
     SetEnv DJANGO_SETTINGS_MODULE bikeyard.settings
     PythonHandler django.core.handlers.modpython
     PythonDebug On
</Location>
<Location "/djangoblog/media/">
     SetHandler None
</Location>
<Location "/rootmedia/">
     SetHandler None
</Location>

Alias /media /home/greblus/Programowanie/django/www/media
Alias /rootmedia /home/greblus/Programowanie/django/www/rootmedia

As you see I've Django installed in $HOME/local/.

urls.py :
(r'^djangoblog/$', 'bikeyard.benches.views.show'),
(r'^djangoblog/admin/', include('django.contrib.admin.urls')),

and /djangoblog always works. The problem starts with the admin
interface, it shows this:

http://greblus.go.pl/stuff/traceback.txt

But not every time. Sometimes it works (I know, it sounds ridiculous).
Another "bad" thing happens when it works, and I try to add an entry
using admin interface:

http://greblus.go.pl/stuff/operational_error.html

manage.py runserver works well, so dbfile is not corrupted.

And here I'm completely lost. I think I could try to switch db to, say
mysql, but I don't wanna do this for a simple app, sqlite is more than
enough.

Help! Please. :)

W.

PS. These are packages I use:

libapache2-mod-python-3.1.4-0ubuntu1
sqlite3-3.2.8-1ubuntu1
python-pysqlite2-2.0.5-1ubuntu1
apache-2.0.55-4ubuntu2
python-2.4.2-0ubuntu3

--
Talkers are no good doers.
http://greblus.go.pl






--
--
Michael
--~--~---------~--~----~------------~-------~--~----~
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