settings is undefined
I have disable askboth authentication and currently trying to implement custom to respond a idp service provider. I am haven't implemented by login module yet but via apache I had setup my site such that https://mysite.com/Shibboleth.sso/Login to actually redirect to http://mysite.com (after login). This is done via apache settings. But after I remove the login module I start to get following errors. I am not really understanding these errors.
Also it would be great if someone can point on implementing custom backend authentication for REMOTE_USER.
[Sat Apr 06 16:40:27 2013] [error] [client 128.101.35.71] mod_wsgi (pid=25787): Exception occurred processing WSGI script '/code/mysite/answers/django.wsgi'. [Sat Apr 06 16:40:27 2013] [error] [client 128.101.35.71] Traceback (most recent call last): [Sat Apr 06 16:40:27 2013] [error] [client
128.101.35.71] File "/code/mysite/local/lib/python2.7/site-packages/Django-1.4.5-py2.7.egg/django/core/handlers/wsgi.py", line 241, in __call__ [Sat Apr 06 16:40:27 2013] [error] [client
128.101.35.71] response = self.get_response(request) [Sat Apr 06 16:40:27 2013] [error] [client
128.101.35.71] File "/code/mysite/local/lib/python2.7/site-packages/Django-1.4.5-py2.7.egg/django/core/handlers/base.py", line 179, in get_response [Sat Apr 06 16:40:27 2013] [error] [client
128.101.35.71] response = self.handle_uncaught_exception(request, resolver, sys.exc_info()) [Sat Apr 06 16:40:27 2013] [error] [client
128.101.35.71] File "/code/mysite/local/lib/python2.7/site-packages/Django-1.4.5-py2.7.egg/django/core/handlers/base.py", line 228, in handle_uncaught_exception [Sat Apr 06 16:40:27 2013] [error] [client 128.101.35.71] return callback(request, **param_dict) [Sat Apr 06 16:40:27 2013] [error] [client
128.101.35.71] File "/code/mysite/local/lib/python2.7/site-packages/Django-1.4.5-py2.7.egg/django/utils/decorators.py", line 91, in _wrapped_view [Sat Apr 06 16:40:27 2013] [error] [client
128.101.35.71] response = view_func(request, *args, **kwargs) [Sat Apr 06 16:40:27 2013] [error] [client 128.101.35.71] File "/code/mysite/local/lib/python2.7/site-packages/Django-1.4.5-py2.7.egg/django/views/defaults.py", line 33, in server_error [Sat Apr 06 16:40:27 2013] [error] [client
128.101.35.71] return http.HttpResponseServerError(t.render(Context({}))) [Sat Apr 06 16:40:27 2013] [error] [client 128.101.35.71] File "/code/mysite/local/lib/python2.7/site-packages/Coffin-0.3.7-py2.7.egg/coffin/template/__init__.py", line 55, in render [Sat Apr 06 16:40:27 2013] [error] [client
128.101.35.71] return super(Template, self).render(**context) [Sat Apr 06 16:40:27 2013] [error] [client
128.101.35.71] File "/code/mysite/local/lib/python2.7/site-packages/Jinja2-2.6-py2.7.egg/jinja2/environment.py", line 894, in render [Sat Apr 06 16:40:27 2013] [error] [client
128.101.35.71] return ...
Comments
The second error is because python path probably does not include
askbot/deps/
. Look into the settings.py sample inside askbot repository, there is a snippet on top for including that path.