On May 27, 6:01 pm, Tim Valenta <[email protected]> wrote:
> So it fails under the /admin/ area, but does the rest of your site work at
> all?  If so, then your wsgi configuration above seems to work, and perhaps
> the problem instead lies with some sort of semantic issue.

Yes, the rest of the site works fine. On my local machine, the admin
app works but is served through the built-in server..
(although I understand that AdminMediaHandler supposedly works in the
same way)

>
> I'd definitely check your apache error log.  Django will dump the stacktrace
> there, and often has been my only clue as to why something fails.  What do
> you find there?

This is output in /var/log/apache2/error.log:
---
[Wed May 27 22:19:01 2009] [error] [client 255.255.255.0] mod_wsgi
(pid=32484): Exception occurred within WSGI script '/a/website.nl/etc/
django.wsgi'.
---
and there's also a Traceback which ends with "OperationalError: unable
to open database file" (not sure where this comes from.. the path to
the SQLite3 database file is set as absolute and the file is writable.
(and it works in the rest of the site)

Can I get mod_wsgi to be a bit more specific about this 'exception' it
encounters?


>
> (Additionally, once you can give the error a name and a place, you could try
> walking through it all manually in the python interpreter... executing your
> wsgi file with python directly, importing the 'django' package, performing
> various imports at or near the error in your apache error log, etc.  It can
> be easier to figure out the exact problem like that, instead of
> guess-and-check methodology.)

when I execute the wsgi file with python, nothing is displayed.
in the python shell, I can import the django package without
problems...

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"modwsgi" 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/modwsgi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to