Hi All -
The background:
I'm using SVN trunk with sqlite3, and can't access the admin page due
to a write-error on the database ("OperationalError: attempt to write a
readonly database"). I've attempted a number of permissions changes
(even doing a temporary chmod 777) on the database file with no luck.
Any thoughts on what's going on?
My urls.py looks like
====
urlpatterns = patterns('',
# Uncomment this for admin:
(r'^dicom/admin/', include('django.contrib.admin.urls')),
(r'^dicom/help/$', 'dnl_db.dindex.views.help'),
...
====
The error:
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/core/handlers/modpython.py",
line 163, in handler
return ModPythonHandler()(req)
File
"/usr/lib/python2.3/site-packages/django/core/handlers/modpython.py",
line 140, in __call__
response = middleware_method(request, response)
File
"/usr/lib/python2.3/site-packages/django/contrib/sessions/middleware.py",
line 89, in process_response
datetime.datetime.now() +
datetime.timedelta(seconds=settings.SESSION_COOKIE_AGE))
File
"/usr/lib/python2.3/site-packages/django/contrib/sessions/models.py",
line 29, in save
s.save()
File "/usr/lib/python2.3/site-packages/django/db/models/base.py",
line 204, in save
','.join(placeholders)), db_values)
File "/usr/lib/python2.3/site-packages/django/db/backends/util.py",
line 12, in execute
return self.cursor.execute(sql, params)
File
"/usr/lib/python2.3/site-packages/django/db/backends/sqlite3/base.py",
line 80, in execute
return Database.Cursor.execute(self, query, params)
OperationalError: attempt to write a readonly database
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" 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-users
-~----------~----~----~----~------~----~------~--~---