Skip to content

Instantly share code, notes, and snippets.

@arvearve
Created March 18, 2013 14:58
Show Gist options
  • Save arvearve/5187751 to your computer and use it in GitHub Desktop.
Save arvearve/5187751 to your computer and use it in GitHub Desktop.
error
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Subject: [Django] ERROR (EXTERNAL IP): Internal Server Error: /
From: root@localhost
To: [email protected]
Date: Mon, 18 Mar 2013 14:58:03 -0000
Message-ID: <[email protected]>
Traceback (most recent call last):
File "/home/webkom/webapps/nerd_test/eggs/Django-1.4.3-py2.7.egg/django/core/handlers/base.py", line 89, in get_response
response = middleware_method(request)
File "/home/webkom/webapps/nerd_test/eggs/Django-1.4.3-py2.7.egg/django/middleware/locale.py", line 21, in process_request
check_path = self.is_language_prefix_patterns_used()
File "/home/webkom/webapps/nerd_test/eggs/Django-1.4.3-py2.7.egg/django/middleware/locale.py", line 54, in is_language_prefix_patterns_used
for url_pattern in get_resolver(None).url_patterns:
File "/home/webkom/webapps/nerd_test/eggs/Django-1.4.3-py2.7.egg/django/core/urlresolvers.py", line 328, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/home/webkom/webapps/nerd_test/eggs/Django-1.4.3-py2.7.egg/django/core/urlresolvers.py", line 323, in urlconf_module
self._urlconf_module = import_module(self.urlconf_name)
File "/home/webkom/webapps/nerd_test/eggs/Django-1.4.3-py2.7.egg/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/home/webkom/webapps/nerd_test/project/urls.py", line 42, in <module>
(r'^robots\.txt$', TemplateView.as_view(template_name='robots.txt', content_type='text/plain')),
File "/home/webkom/webapps/nerd_test/eggs/Django-1.4.3-py2.7.egg/django/views/generic/base.py", line 42, in as_view
cls.__name__, key))
TypeError: TemplateView() received an invalid keyword 'content_type'
<WSGIRequest
path:/,
GET:<QueryDict: {}>,
POST:<QueryDict: {}>,
COOKIES:{'__utma': '140353132.1944478421.1358244983.1363441267.1363615359.51',
'__utmb': '140353132.37.10.1363615359',
'__utmc': '140353132',
'__utmz': '140353132.1361544156.32.2.utmcsr=hsmaker.com|utmccn=(referral)|utmcmd=referral|utmcct=/harlemshake.asp',
'sessionid': '08b98a2de06ad2ac6badac4a61c927f6'},
META:{'CONTENT_LENGTH': '',
'CONTENT_TYPE': '',
'DOCUMENT_ROOT': '/etc/nginx/html',
'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3',
'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8',
'HTTP_CACHE_CONTROL': 'max-age=0',
'HTTP_CONNECTION': 'keep-alive',
'HTTP_COOKIE': 'sessionid=08b98a2de06ad2ac6badac4a61c927f6; __utma=140353132.1944478421.1358244983.1363441267.1363615359.51; __utmb=140353132.37.10.1363615359; __utmc=140353132; __utmz=140353132.1361544156.32.2.utmcsr=hsmaker.com|utmccn=(referral)|utmcmd=referral|utmcct=/harlemshake.asp',
'HTTP_HOST': 'area51.abakus.no',
'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.172 Safari/537.22',
'PATH_INFO': u'/',
'QUERY_STRING': '',
'REMOTE_ADDR': '78.91.3.210',
'REMOTE_PORT': '49245',
'REQUEST_METHOD': 'GET',
'REQUEST_URI': '/',
'SCRIPT_NAME': u'',
'SERVER_NAME': 'area51.abakus.no',
'SERVER_PORT': '443',
'SERVER_PROTOCOL': 'HTTP/1.1',
'uwsgi.node': 'luke',
'uwsgi.version': '1.3',
'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x1ddd660>,
'wsgi.file_wrapper': <built-in function uwsgi_sendfile>,
'wsgi.input': <uwsgi._Input object at 0x18b4770>,
'wsgi.multiprocess': False,
'wsgi.multithread': False,
'wsgi.run_once': False,
'wsgi.url_scheme': 'http',
'wsgi.version': (1, 0)}>
-------------------------------------------------------------------------------
Traceback (most recent call last):
File "/home/webkom/webapps/nerd_test/eggs/Django-1.4.3-py2.7.egg/django/core/handlers/wsgi.py", line 241, in __call__
response = self.get_response(request)
File "/home/webkom/webapps/nerd_test/eggs/Django-1.4.3-py2.7.egg/django/core/handlers/base.py", line 179, in get_response
response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
File "/home/webkom/webapps/nerd_test/eggs/Django-1.4.3-py2.7.egg/django/core/handlers/base.py", line 224, in handle_uncaught_exception
if resolver.urlconf_module is None:
File "/home/webkom/webapps/nerd_test/eggs/Django-1.4.3-py2.7.egg/django/core/urlresolvers.py", line 323, in urlconf_module
self._urlconf_module = import_module(self.urlconf_name)
File "/home/webkom/webapps/nerd_test/eggs/Django-1.4.3-py2.7.egg/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/home/webkom/webapps/nerd_test/project/urls.py", line 42, in <module>
(r'^robots\.txt$', TemplateView.as_view(template_name='robots.txt', content_type='text/plain')),
File "/home/webkom/webapps/nerd_test/eggs/Django-1.4.3-py2.7.egg/django/views/generic/base.py", line 42, in as_view
cls.__name__, key))
TypeError: TemplateView() received an invalid keyword 'content_type'
[pid: 23500|app: 0|req: 9/9] 78.91.3.210 () {42 vars in 979 bytes} [Mon Mar 18 15:58:03 2013] GET / => generated 0 bytes in 29 msecs (HTTP/1.1 500) 0 headers in 0 bytes (0 switches on core 0)
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Subject: [Django] ERROR (EXTERNAL IP): Internal Server Error: /favicon.ico
From: root@localhost
To: [email protected]
Date: Mon, 18 Mar 2013 14:58:03 -0000
Message-ID: <[email protected]>
Traceback (most recent call last):
File "/home/webkom/webapps/nerd_test/eggs/Django-1.4.3-py2.7.egg/django/core/handlers/base.py", line 89, in get_response
response = middleware_method(request)
File "/home/webkom/webapps/nerd_test/eggs/Django-1.4.3-py2.7.egg/django/middleware/common.py", line 67, in process_request
if (not urlresolvers.is_valid_path(request.path_info, urlconf) and
File "/home/webkom/webapps/nerd_test/eggs/Django-1.4.3-py2.7.egg/django/core/urlresolvers.py", line 531, in is_valid_path
resolve(path, urlconf)
File "/home/webkom/webapps/nerd_test/eggs/Django-1.4.3-py2.7.egg/django/core/urlresolvers.py", line 420, in resolve
return get_resolver(urlconf).resolve(path)
File "/home/webkom/webapps/nerd_test/eggs/Django-1.4.3-py2.7.egg/django/core/urlresolvers.py", line 298, in resolve
for pattern in self.url_patterns:
File "/home/webkom/webapps/nerd_test/eggs/Django-1.4.3-py2.7.egg/django/core/urlresolvers.py", line 328, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/home/webkom/webapps/nerd_test/eggs/Django-1.4.3-py2.7.egg/django/core/urlresolvers.py", line 323, in urlconf_module
self._urlconf_module = import_module(self.urlconf_name)
File "/home/webkom/webapps/nerd_test/eggs/Django-1.4.3-py2.7.egg/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/home/webkom/webapps/nerd_test/project/urls.py", line 42, in <module>
(r'^robots\.txt$', TemplateView.as_view(template_name='robots.txt', content_type='text/plain')),
File "/home/webkom/webapps/nerd_test/eggs/Django-1.4.3-py2.7.egg/django/views/generic/base.py", line 42, in as_view
cls.__name__, key))
TypeError: TemplateView() received an invalid keyword 'content_type'
<WSGIRequest
path:/favicon.ico,
GET:<QueryDict: {}>,
POST:<QueryDict: {}>,
COOKIES:{},
META:{'CONTENT_LENGTH': '',
'CONTENT_TYPE': '',
'DOCUMENT_ROOT': '/etc/nginx/html',
'HTTP_ACCEPT': '*/*',
'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3',
'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8',
'HTTP_CONNECTION': 'keep-alive',
'HTTP_HOST': 'area51.abakus.no',
'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.172 Safari/537.22',
'PATH_INFO': u'/favicon.ico',
'QUERY_STRING': '',
'REMOTE_ADDR': '78.91.3.210',
'REMOTE_PORT': '49245',
'REQUEST_METHOD': 'GET',
'REQUEST_URI': '/favicon.ico',
'SCRIPT_NAME': u'',
'SERVER_NAME': 'area51.abakus.no',
'SERVER_PORT': '443',
'SERVER_PROTOCOL': 'HTTP/1.1',
'uwsgi.node': 'luke',
'uwsgi.version': '1.3',
'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x1ddd660>,
'wsgi.file_wrapper': <built-in function uwsgi_sendfile>,
'wsgi.input': <uwsgi._Input object at 0x2e50e60>,
'wsgi.multiprocess': False,
'wsgi.multithread': False,
'wsgi.run_once': False,
'wsgi.url_scheme': 'http',
'wsgi.version': (1, 0)}>
-------------------------------------------------------------------------------
Traceback (most recent call last):
File "/home/webkom/webapps/nerd_test/eggs/Django-1.4.3-py2.7.egg/django/core/handlers/wsgi.py", line 241, in __call__
response = self.get_response(request)
File "/home/webkom/webapps/nerd_test/eggs/Django-1.4.3-py2.7.egg/django/core/handlers/base.py", line 179, in get_response
response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
File "/home/webkom/webapps/nerd_test/eggs/Django-1.4.3-py2.7.egg/django/core/handlers/base.py", line 224, in handle_uncaught_exception
if resolver.urlconf_module is None:
File "/home/webkom/webapps/nerd_test/eggs/Django-1.4.3-py2.7.egg/django/core/urlresolvers.py", line 323, in urlconf_module
self._urlconf_module = import_module(self.urlconf_name)
File "/home/webkom/webapps/nerd_test/eggs/Django-1.4.3-py2.7.egg/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/home/webkom/webapps/nerd_test/project/urls.py", line 42, in <module>
(r'^robots\.txt$', TemplateView.as_view(template_name='robots.txt', content_type='text/plain')),
File "/home/webkom/webapps/nerd_test/eggs/Django-1.4.3-py2.7.egg/django/views/generic/base.py", line 42, in as_view
cls.__name__, key))
TypeError: TemplateView() received an invalid keyword 'content_type'
[pid: 23500|app: 0|req: 10/10] 78.91.3.210 () {38 vars in 624 bytes} [Mon Mar 18 15:58:03 2013] GET /favicon.ico => generated 0 bytes in 5 msecs (HTTP/1.1 500) 0 headers in 0 bytes (0 switches on core 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment