Disclaimer: I'm new to Django and system administration, though a C++
developer.

following the tutorial on: 
http://uswaretech.com/blog/2009/02/how-to-build-a-facebook-app-in-django/
I get everything set up. In my settings.py, I have in my
MIDDLEWARE_CLASSES:
    'facebook.djangofb.FacebookMiddleware',

When I run this, it renders:
"Unhandled Exception

An unhandled exception was thrown by the application.
"

my logs look like this (note "Error importing middleware" at the top
of the stack trace). Any idea how/why it cannot find this "middleware"
and why the exception would not be caught? Thank you in advance.

[Sun Jan 02 18:04:40 2011] [warn] FastCGI: (dynamic) server "/home/pj/
public_html/dispatch.fcgi" (pid 18148) terminated by calling exit with
status '0'
[Sun Jan 02 18:04:40 2011] [warn] FastCGI: (dynamic) server "/home/pj/
public_html/dispatch.fcgi" (pid 18148) termination signaled
[Sun Jan 02 18:04:40 2011] [error] [client 69.203.110.216] FastCGI:
server "/home/pj/public_html/dispatch.fcgi" stderr:
ImproperlyConfigured: Error importing middleware facebook.djangofb:
"No module named facebook.djangofb", referer: http://apps.facebook.com/###/
[Sun Jan 02 18:04:40 2011] [error] [client 69.203.110.216] FastCGI:
server "/home/pj/public_html/dispatch.fcgi" stderr:     raise
exceptions.ImproperlyConfigured('Error importing middleware %s: "%s"'
% (mw_module, e)), referer: http://apps.facebook.com/###/
[Sun Jan 02 18:04:40 2011] [error] [client 69.203.110.216] FastCGI:
server "/home/pj/public_html/dispatch.fcgi" stderr:   File "/home/pj/
local/lib/python2.6/site-packages/django/core/handlers/base.py", line
47, in load_middleware, referer: http://apps.facebook.com/###/
[Sun Jan 02 18:04:40 2011] [error] [client 69.203.110.216] FastCGI:
server "/home/pj/public_html/dispatch.fcgi" stderr:
self.load_middleware(), referer: http://apps.facebook.com/###/
[Sun Jan 02 18:04:40 2011] [error] [client 69.203.110.216] FastCGI:
server "/home/pj/public_html/dispatch.fcgi" stderr:   File "/home/pj/
local/lib/python2.6/site-packages/django/core/handlers/wsgi.py", line
247, in __call__, referer: http://apps.facebook.com/###/
[Sun Jan 02 18:04:40 2011] [error] [client 69.203.110.216] FastCGI:
server "/home/pj/public_html/dispatch.fcgi" stderr:     result =
self.application(environ, start_response), referer: 
http://apps.facebook.com/###/
[Sun Jan 02 18:04:40 2011] [error] [client 69.203.110.216] FastCGI:
server "/home/pj/public_html/dispatch.fcgi" stderr:   File "/home/pj/
local/lib/python2.6/site-packages/flup/server/fcgi_base.py", line
1118, in handler, referer: http://apps.facebook.com/###/
[Sun Jan 02 18:04:40 2011] [error] [client 69.203.110.216] FastCGI:
server "/home/pj/public_html/dispatch.fcgi" stderr:
protocolStatus, appStatus = self.server.handler(self), referer:
http://apps.facebook.com/###/
[Sun Jan 02 18:04:40 2011] [error] [client 69.203.110.216] FastCGI:
server "/home/pj/public_html/dispatch.fcgi" stderr:   File "/home/pj/
local/lib/python2.6/site-packages/flup/server/fcgi_base.py", line 558,
in run, referer: http://apps.facebook.com/###/
[Sun Jan 02 18:04:40 2011] [error] [client 69.203.110.216] FastCGI:
server "/home/pj/public_html/dispatch.fcgi" stderr: Traceback (most
recent call last):, referer: http://apps.facebook.com/###/

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to