Django internal 200 error after changing some code -
i have git repository, use django project. when change locally, push , pull @ "real" server. settings.py files ignored, there no conflict. after latest pull however, following error:
[sun jul 05 16:59:05 2015] [error] no handlers found logger "django.request" [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] mod_wsgi (pid=30560): exception occurred processing wsgi script '/home/libraring/webapps/libraring/src/mysite/wsgi.py'. [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] traceback (most recent call last): [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] file "/home/libraring/webapps/libraring/lib/python2.7/django/core/handlers/wsgi.py", line 187, in __call__ [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] response = self.get_response(request) [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] file "/home/libraring/webapps/libraring/lib/python2.7/django/core/handlers/base.py", line 199, in get_response [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] response = self.handle_uncaught_exception(request, resolver, sys.exc_info()) [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] file "/home/libraring/webapps/libraring/lib/python2.7/django/core/handlers/base.py", line 236, in handle_uncaught_exception [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] return debug.technical_500_response(request, *exc_info) [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] file "/home/libraring/webapps/libraring/lib/python2.7/django/views/debug.py", line 91, in technical_500_response [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] html = reporter.get_traceback_html() [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] file "/home/libraring/webapps/libraring/lib/python2.7/django/views/debug.py", line 350, in get_traceback_html [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] return t.render(c) [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] file "/home/libraring/webapps/libraring/lib/python2.7/django/template/base.py", line 148, in render [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] return self._render(context) [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] file "/home/libraring/webapps/libraring/lib/python2.7/django/template/base.py", line 142, in _render [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] return self.nodelist.render(context) [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] file "/home/libraring/webapps/libraring/lib/python2.7/django/template/base.py", line 844, in render [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] bit = self.render_node(node, context) [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] file "/home/libraring/webapps/libraring/lib/python2.7/django/template/debug.py", line 80, in render_node [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] return node.render(context) [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] file "/home/libraring/webapps/libraring/lib/python2.7/django/template/debug.py", line 90, in render [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] output = self.filter_expression.resolve(context) [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] file "/home/libraring/webapps/libraring/lib/python2.7/django/template/base.py", line 624, in resolve [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] new_obj = func(obj, *arg_vals) [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] file "/home/libraring/webapps/libraring/lib/python2.7/django/template/defaultfilters.py", line 769, in date [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] return format(value, arg) [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] file "/home/libraring/webapps/libraring/lib/python2.7/django/utils/dateformat.py", line 343, in format [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] return df.format(format_string) [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] file "/home/libraring/webapps/libraring/lib/python2.7/django/utils/dateformat.py", line 35, in format [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] pieces.append(force_text(getattr(self, piece)())) [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] file "/home/libraring/webapps/libraring/lib/python2.7/django/utils/dateformat.py", line 268, in r [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] return self.format('d, j m y h:i:s o') [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] file "/home/libraring/webapps/libraring/lib/python2.7/django/utils/dateformat.py", line 35, in format [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] pieces.append(force_text(getattr(self, piece)())) [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] file "/home/libraring/webapps/libraring/lib/python2.7/django/utils/encoding.py", line 85, in force_text [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] s = six.text_type(s) [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] file "/home/libraring/webapps/libraring/lib/python2.7/django/utils/functional.py", line 144, in __text_cast [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] return func(*self.__args, **self.__kw) [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] file "/home/libraring/webapps/libraring/lib/python2.7/django/utils/translation/__init__.py", line 83, in ugettext [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] return _trans.ugettext(message) [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] file "/home/libraring/webapps/libraring/lib/python2.7/django/utils/translation/trans_real.py", line 325, in ugettext [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] return do_translate(message, 'ugettext') [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] file "/home/libraring/webapps/libraring/lib/python2.7/django/utils/translation/trans_real.py", line 306, in do_translate [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] _default = translation(settings.language_code) [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] file "/home/libraring/webapps/libraring/lib/python2.7/django/utils/translation/trans_real.py", line 209, in translation [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] default_translation = _fetch(settings.language_code) [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] file "/home/libraring/webapps/libraring/lib/python2.7/django/utils/translation/trans_real.py", line 189, in _fetch [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] "the translation infrastructure cannot initialized before " [sun jul 05 16:59:05 2015] [error] [client 127.0.0.1] appregistrynotready: translation infrastructure cannot initialized before apps registry ready. check don't make non-lazy gettext calls @ import time.
also, when open url 'internal 200 error'.
interestingly, when run django app on server ran locally, ie. 'python manage.py runserver' no error whatsoever.
you can use git reset --hard <okcommitsha>
restore files previous state. okcommitsha
actual commit key when fine.
more details here
you use git diff head <okcommitsha>
see whats changes applied since last pull , therefore see issue located.
Comments
Post a Comment