Revision history [back]
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 self.environment.handle_exception(exc_info, True) [Sat Apr 06 16:40:27 2013] [error] [client 128.101.35.71] File "/code/mysite/answers/askbot/templates/500.html", line 1, in top-level template code [Sat Apr 06 16:40:27 2013] [error] [client 128.101.35.71] {% extends "two_column_body.html" %} [Sat Apr 06 16:40:27 2013] [error] [client
128.101.35.71] File "/code/mysite/answers/askbot/templates/two_column_body.html", line 1, in top-level template code [Sat Apr 06 16:40:27 2013] [error] [client 128.101.35.71] {% extends "base.html" %} [Sat Apr 06 16:40:27 2013] [error] [client 128.101.35.71] File "/code/mysite/answers/askbot/templates/base.html", line 4, in top-level template code [Sat Apr 06 16:40:27 2013] [error] [client 128.101.35.71] <title>{% block title %}{% endblock %} - {{ settings.APP_TITLE|escape }}</title> [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 372, in getattr [Sat Apr 06 16:40:27 2013] [error] [client
128.101.35.71] return getattr(obj, attribute) [Sat Apr 06 16:40:27 2013] [error] [client
128.101.35.71] UndefinedError: 'settings' is undefined
after removing the 404html and 505html, I get the following error:
[Sat Apr 06 19:18:20 2013] [debug] mod_apache.cpp(281): [client 128.101.35.71] shib_init_rc
[Sat Apr 06 19:18:20 2013] [debug] mod_apache.cpp(1342): [client 128.101.35.71] shib_fixup(32654): ENTER
[Sat Apr 06 19:18:20 2013] [debug] mod_apache.cpp(1342): [client 128.101.35.71] shib_fixup(32654): ENTER
[Sat Apr 06 19:18:20 2013] [error] [client 128.101.35.71] mod_wsgi (pid=32652): Exception occurred processing WSGI script '/code/mysite/answers/django.wsgi'.
[Sat Apr 06 19:18:20 2013] [error] [client 128.101.35.71] Traceback (most recent call last):
[Sat Apr 06 19:18:20 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 219, in __call__
[Sat Apr 06 19:18:20 2013] [error] [client 128.101.35.71] self.load_middleware()
[Sat Apr 06 19:18:20 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 47, in load_middleware
[Sat Apr 06 19:18:20 2013] [error] [client 128.101.35.71] raise exceptions.ImproperlyConfigured('Error importing middleware %s: "%s"' % (mw_module, e))
[Sat Apr 06 19:18:20 2013] [error] [client 128.101.35.71] ImproperlyConfigured: Error importing middleware askbot.middleware.anon_user: "No module named group_messaging"
[Sat Apr 06 19:18:20 2013] [debug] mod_deflate.c(615): [client 128.101.35.71] Zlib: Compressed 625 to 381 : URL /
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 self.environment.handle_exception(exc_info, True) [Sat Apr 06 16:40:27 2013] [error] [client 128.101.35.71] File "/code/mysite/answers/askbot/templates/500.html", line 1, in top-level template code [Sat Apr 06 16:40:27 2013] [error] [client 128.101.35.71] {% extends "two_column_body.html" %} [Sat Apr 06 16:40:27 2013] [error] [client
128.101.35.71] File "/code/mysite/answers/askbot/templates/two_column_body.html", line 1, in top-level template code [Sat Apr 06 16:40:27 2013] [error] [client 128.101.35.71] {% extends "base.html" %} [Sat Apr 06 16:40:27 2013] [error] [client 128.101.35.71] File "/code/mysite/answers/askbot/templates/base.html", line 4, in top-level template code [Sat Apr 06 16:40:27 2013] [error] [client 128.101.35.71] <title>{% block title %}{% endblock %} - {{ settings.APP_TITLE|escape }}</title> [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 372, in getattr [Sat Apr 06 16:40:27 2013] [error] [client
128.101.35.71] return getattr(obj, attribute) [Sat Apr 06 16:40:27 2013] [error] [client
128.101.35.71] UndefinedError: 'settings' is undefined
after removing the 404html and 505html, I get the following error:
[Sat Apr 06 19:18:20 2013] [debug] mod_apache.cpp(281): [client 128.101.35.71] shib_init_rc
[Sat Apr 06 19:18:20 2013] [debug] mod_apache.cpp(1342): [client 128.101.35.71] shib_fixup(32654): ENTER
[Sat Apr 06 19:18:20 2013] [debug] mod_apache.cpp(1342): [client 128.101.35.71] shib_fixup(32654): ENTER
[Sat Apr 06 19:18:20 2013] [error] [client 128.101.35.71] mod_wsgi (pid=32652): Exception occurred processing WSGI script '/code/mysite/answers/django.wsgi'.
'/export/scratch/code/vGopherAnswers/gopheranswers/django.wsgi'.
[Sat Apr 06 19:18:20 2013] [error] [client 128.101.35.71] Traceback (most recent call last):
[Sat Apr 06 19:18:20 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", "/export/scratch/code/mysite/local/lib/python2.7/site-packages/Django-1.4.5-py2.7.egg/django/core/handlers/wsgi.py", line 219, in __call__
[Sat Apr 06 19:18:20 2013] [error] [client 128.101.35.71] self.load_middleware()
[Sat Apr 06 19:18:20 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", "/export/scratch/code/mysite/local/lib/python2.7/site-packages/Django-1.4.5-py2.7.egg/django/core/handlers/base.py", line 47, in load_middleware
[Sat Apr 06 19:18:20 2013] [error] [client 128.101.35.71] raise exceptions.ImproperlyConfigured('Error importing middleware %s: "%s"' % (mw_module, e))
[Sat Apr 06 19:18:20 2013] [error] [client 128.101.35.71] ImproperlyConfigured: Error importing middleware askbot.middleware.anon_user: "No module named group_messaging"
[Sat Apr 06 19:18:20 2013] [debug] mod_deflate.c(615): [client 128.101.35.71] Zlib: Compressed 625 to 381 : URL /
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 self.environment.handle_exception(exc_info, True) [Sat Apr 06 16:40:27 2013] [error] [client 128.101.35.71] File "/code/mysite/answers/askbot/templates/500.html", line 1, in top-level template code [Sat Apr 06 16:40:27 2013] [error] [client 128.101.35.71] {% extends "two_column_body.html" %} [Sat Apr 06 16:40:27 2013] [error] [client
128.101.35.71] File "/code/mysite/answers/askbot/templates/two_column_body.html", line 1, in top-level template code [Sat Apr 06 16:40:27 2013] [error] [client 128.101.35.71] {% extends "base.html" %} [Sat Apr 06 16:40:27 2013] [error] [client 128.101.35.71] File "/code/mysite/answers/askbot/templates/base.html", line 4, in top-level template code [Sat Apr 06 16:40:27 2013] [error] [client 128.101.35.71] <title>{% block title %}{% endblock %} - {{ settings.APP_TITLE|escape }}</title> [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 372, in getattr [Sat Apr 06 16:40:27 2013] [error] [client
128.101.35.71] return getattr(obj, attribute) [Sat Apr 06 16:40:27 2013] [error] [client
128.101.35.71] UndefinedError: 'settings' is undefined
after removing the 404html and 505html, I get the following error:
[Sat Apr 06 19:18:20 2013] [debug] mod_apache.cpp(281): [client 128.101.35.71] shib_init_rc
[Sat Apr 06 19:18:20 2013] [debug] mod_apache.cpp(1342): [client 128.101.35.71] shib_fixup(32654): ENTER
[Sat Apr 06 19:18:20 2013] [debug] mod_apache.cpp(1342): [client 128.101.35.71] shib_fixup(32654): ENTER
[Sat Apr 06 19:18:20 2013] [error] [client 128.101.35.71] mod_wsgi (pid=32652): Exception occurred processing WSGI script '/export/scratch/code/vGopherAnswers/gopheranswers/django.wsgi'.
[Sat Apr 06 19:18:20 2013] [error] [client 128.101.35.71] Traceback (most recent call last):
[Sat Apr 06 19:18:20 2013] [error] [client 128.101.35.71] File "/export/scratch/code/mysite/local/lib/python2.7/site-packages/Django-1.4.5-py2.7.egg/django/core/handlers/wsgi.py", line 219, in __call__
[Sat Apr 06 19:18:20 2013] [error] [client 128.101.35.71] self.load_middleware()
[Sat Apr 06 19:18:20 2013] [error] [client 128.101.35.71] File "/export/scratch/code/mysite/local/lib/python2.7/site-packages/Django-1.4.5-py2.7.egg/django/core/handlers/base.py", line 47, in load_middleware
[Sat Apr 06 19:18:20 2013] [error] [client 128.101.35.71] raise exceptions.ImproperlyConfigured('Error importing middleware %s: "%s"' % (mw_module, e))
[Sat Apr 06 19:18:20 2013] [error] [client 128.101.35.71] ImproperlyConfigured: Error importing middleware askbot.middleware.anon_user: "No module named group_messaging"
[Sat Apr 06 19:18:20 2013] [debug] mod_deflate.c(615): [client 128.101.35.71] Zlib: Compressed 625 to 381 : URL /
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 self.environment.handle_exception(exc_info, True) [Sat Apr 06 16:40:27 2013] [error] [client 128.101.35.71] File "/code/mysite/answers/askbot/templates/500.html", line 1, in top-level template code [Sat Apr 06 16:40:27 2013] [error] [client 128.101.35.71] {% extends "two_column_body.html" %} [Sat Apr 06 16:40:27 2013] [error] [client
128.101.35.71] File "/code/mysite/answers/askbot/templates/two_column_body.html", line 1, in top-level template code [Sat Apr 06 16:40:27 2013] [error] [client 128.101.35.71] {% extends "base.html" %} [Sat Apr 06 16:40:27 2013] [error] [client 128.101.35.71] File "/code/mysite/answers/askbot/templates/base.html", line 4, in top-level template code [Sat Apr 06 16:40:27 2013] [error] [client 128.101.35.71] <title>{% block title %}{% endblock %} - {{ settings.APP_TITLE|escape }}</title> [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 372, in getattr [Sat Apr 06 16:40:27 2013] [error] [client
128.101.35.71] return getattr(obj, attribute) [Sat Apr 06 16:40:27 2013] [error] [client
128.101.35.71] UndefinedError: 'settings' is undefined