Ask Your Question
0

settings is undefined

asked 2013-04-06 17:53:07 -0600

SocialQA gravatar image

updated 2013-04-06 19:23:21 -0600

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)
edit retag flag offensive 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 gravatar imageEvgeny ( 2013-04-06 19:23:04 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-04-06 18:07:23 -0600

Evgeny gravatar image

updated 2013-04-06 18:07:41 -0600

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.

edit flag offensive delete link more

Comments

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

SocialQA gravatar imageSocialQA ( 2013-04-06 19:19:54 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-04-06 17:53:07 -0600

Seen: 227 times

Last updated: Apr 06 '13