I apologize for my newbness, but I have spent hours searching and
experimenting and have yet to find a solution to my problem.  Under
the development server my admin-site worked well.  However, when I
tried to deploy it using recommended procedures under Apache and WSGI,
I encountered problems.

First, I was unable to see any of my apps.  Only the auth and sites
modules were displayed.  Then I got a message saying that I did not
have permission to edit anything.

I finally tracked it down to the autodiscover process.  I put some
logging code in the admin.sites.py file and the admin/__init__.py
files to track it down.  I found that when it tried to load my modules
it just fell off the face of the earth.  My logging code just
stopped.  Here is what the apache log looked like:

[Mon Mar 22 03:15:23 2010] [error] INFO     Found app:['/usr/local/
lib/
python2.6/dist-packages/django/contrib/sites']
[Mon Mar 22 03:15:23 2010] [error] INFO     Found admin module
[Mon Mar 22 03:15:23 2010] [error] INFO     <class
'django.contrib.sites.models.Site'>
[Mon Mar 22 03:15:23 2010] [error] INFO     Model: <class
'django.contrib.sites.models.Site'>
[Mon Mar 22 03:15:23 2010] [error] INFO     Found app:['/usr/local/
lib/
python2.6/dist-packages/django/contrib/admin']
[Mon Mar 22 03:15:23 2010] [error] INFO     Error performing
find_module
[Mon Mar 22 03:15:23 2010] [error] INFO     Found app:['/srv/
EdenicConfluence/regnumvisum/clients']
[Mon Mar 22 03:15:23 2010] [error] INFO     Found admin module
[Mon Mar 22 03:15:25 2010] [error] [client 71.21.28.148] File does not
exist: /var/www/favicon.ico, referer:http://209.124.50.80/regnumvisum/
admin/

It never gives me the Model: <class … that I am looking for after my
admin class.

I then put some logging in the admin class itself, and found out that
it was not getting imported all.  I read something somewhere about
WSGI and timing, so I thought I might run WSGI in process and see what
happened.  I commented out WSGIDaemonProcess in my apache conflig, and
voila, it worked.

Everything I have read seems to say that running WSGI in its own
process is the way to go.  Can someone explain what is going on here?

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