First time here? Check out the FAQ!
0

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 ...
(more)
SocialQA's avatar
265
SocialQA
asked 2013-04-06 17:53:07 -0500, updated 2013-04-06 19:23:21 -0500
edit flag offensive 0 remove flag close merge delete

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.

Evgeny's avatar Evgeny (2013-04-06 19:23:04 -0500) edit
add a comment see more comments

1 Answer

1

This may be a bug in Askbot, try deleting templates askbot/templates/404.html and maybe askbot/templates/500.html

The template requires context data, which is not given by the error middleware handling the exception.

Evgeny's avatar
13.2k
Evgeny
answered 2013-04-06 18:07:23 -0500, updated 2013-04-06 18:07:41 -0500
edit flag offensive 0 remove flag delete link

Comments

Thanks for the reply after removing those files, I end up getting following error: updated the question with the latest error.

SocialQA's avatar SocialQA (2013-04-06 19:19:54 -0500) edit
add a comment see more comments