Re: Can't use admin with apache
On 19/07/12 06:27, Demian Brecht wrote:
> What does your Apache log look like? What, exactly, is the 500?
mod_wsgi (pid=18094): Exception occurred processing WSGI script
'/usr/local/django/dogscience/apache/django.wsgi'.
Traceback (most recent call last):
...
File
"/usr/lib/pymodules/python2.6/django/db/backends/sqlite3/base.py", line
200, in execute
return Database.Cursor.execute(self, query, params)
DatabaseError: attempt to write a readonly database
mds@waitaki:/usr/local/django/dogscience$ ls -l sqlite3
-rw-r--r-- 1 mds staff 47104 Jul 18 17:41 sqlite3
Change:
mds@waitaki:/usr/local/django/dogscience$ ls -l sqlite3
-rw-rw-rw- 1 www-data www-data 47104 Jul 18 17:41 sqlite3 -
Now instead of
DatabaseError: attempt to write a readonly database
I get
DatabaseError: unable to open database file
Maybe I'll try a different db what do you think?
> A common issue when deploying is if your fcgi or wsgi script doesn't have
> the correct permissions set, which would cause an error that can't be caught
> by Django.
mds@waitaki:/usr/local/django/dogscience$ ls -l apache/django.wsgi
-rw-r--r-- 1 mds staff 1630 Jul 18 17:38 apache/django.wsgi
How about this:
Is anyone out there deploying on debian squeeze with the following packages:
apache2
libapache2-mod-wsgi
python-django
If so, does the admin work for you?
If it does, what db are you using?
--
Matt Smith
http://mattsmith.org.nz
--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home