HTTP Error 502: Bad Gateway
Request Method: | GET |
---|---|
Request URL: | https://imoveisrealiza.com/imoveis/para-alugar/casa/dom-feliciano/viamao?suites=2+?suites=2+ |
Django Version: | 1.3.5 |
Exception Type: | HTTPError |
Exception Value: | HTTP Error 502: Bad Gateway |
Exception Location: | /usr/lib/python2.7/urllib2.py in http_error_default, line 556 |
Python Executable: | /usr/bin/uwsgi-core |
Python Version: | 2.7.12 |
Python Path: | ['.', '', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat'] |
Server time: | Sex, 29 Mar 2024 08:30:37 -0300 |
/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py
in get_response
for middleware_method in self._view_middleware:
response = middleware_method(request, callback, callback_args, callback_kwargs)
if response:
break
if response is None:
try:
response = callback(request, *callback_args, **callback_kwargs)...
except Exception, e:
# If the view raised an exception, run it through exception
# middleware, and if the exception middleware returns a
# response, use that. Otherwise, reraise the exception.
for middleware_method in self._exception_middleware:
response = middleware_method(request, e)
Variable | Value |
---|---|
exceptions | <module 'django.core.exceptions' from '/usr/local/lib/python2.7/dist-packages/django/core/exceptions.pyc'> |
e | HTTPError() |
callback_args | () |
receivers | [(<function _rollback_on_exception at 0x7fa72444a758>, None)] |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7fa724868d50>> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7fa72b2a2110> |
settings | <django.conf.LazySettings object at 0x7fa72495abd0> |
request | <WSGIRequest GET:<QueryDict: {u'suites': [u'2 ?suites=2 ']}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', 'CSRF_COOKIE': '57a3f5c892b9e9d9da3118d2c37e2955', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'imoveisrealiza.com', 'HTTP_REFERER': 'https://www.imoveisrealiza.com/imoveis/para-alugar/casa/dom-feliciano/viamao?suites=2+', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/imoveis/para-alugar/casa/dom-feliciano/viamao', 'QUERY_STRING': 'suites=2+?suites=2+', 'REMOTE_ADDR': '34.201.28.181', 'REMOTE_PORT': '38780', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/imoveis/para-alugar/casa/dom-feliciano/viamao?suites=2+?suites=2+', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'imoveisrealiza.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'ip-172-31-37-157', 'uwsgi.version': '2.0.12-debian', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7fa72487e420>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7fa721d221e0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}> |
callback | <function imoveis at 0x7fa72540f938> |
resolver | <RegexURLResolver robust.bases.urls (None:None) ^/> |
urlresolvers | <module 'django.core.urlresolvers' from '/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.pyc'> |
callback_kwargs | {'refs': None} |
response | None |
urlconf | 'robust.bases.urls' |
./robust/bases/views.py
in imoveis
#---------------------------------
# Modificada para adequar a versao 2 libs (2020)...
def imoveis(request, refs):
if refs is None or ',' in refs: # Mais de um, entao tratar como uma consulta normal
if hasattr(settings, 'CONFIG_SEARCH'):
return site2.consulta_imoveis(request, None, add_data={"ref":refs,"nolike":"ref"})...
return site.search(request, settings, 'content/result-imoveis', add_data={"ref":refs,"nolike":"ref"})
else:
u = False
if request.session.get('set-access-%s' % refs) is None:
u = True
Variable | Value |
---|---|
refs | None |
request | <WSGIRequest GET:<QueryDict: {u'suites': [u'2 ?suites=2 ']}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', 'CSRF_COOKIE': '57a3f5c892b9e9d9da3118d2c37e2955', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'imoveisrealiza.com', 'HTTP_REFERER': 'https://www.imoveisrealiza.com/imoveis/para-alugar/casa/dom-feliciano/viamao?suites=2+', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/imoveis/para-alugar/casa/dom-feliciano/viamao', 'QUERY_STRING': 'suites=2+?suites=2+', 'REMOTE_ADDR': '34.201.28.181', 'REMOTE_PORT': '38780', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/imoveis/para-alugar/casa/dom-feliciano/viamao?suites=2+?suites=2+', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'imoveisrealiza.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'ip-172-31-37-157', 'uwsgi.version': '2.0.12-debian', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7fa72487e420>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7fa721d221e0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}> |
./robust/site_2.py
in consulta_imoveis
config_search = getattr(settings, 'CONFIG_SEARCH')
if config_search:
qs.update(config_search)
data = go_api('search', qs, request)...
data = set_fields_imoveis(settings, data)
tmpl_result = request.GET.get('template_result_list', 'content/result-imoveis.html')
if not tmpl_result.endswith('.html'):
tmpl_result += '.html'
Variable | Value |
---|---|
qs | {'nolike': 'ref', 'range': 'valor,dorm,elevadores,num_garagens', 'recordcountpage': 10, 'ref': None, u'suites': '2 ?suites=2', 'template_result_list': 'content/result-imoveis.html'} |
config_search | {'range': 'valor,dorm,elevadores,num_garagens', 'recordcountpage': 10, 'template_result_list': 'content/result-imoveis.html'} |
querystring | None |
add_data | {'nolike': 'ref', 'ref': None} |
request | <WSGIRequest GET:<QueryDict: {u'suites': [u'2 ?suites=2 ']}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', 'CSRF_COOKIE': '57a3f5c892b9e9d9da3118d2c37e2955', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'imoveisrealiza.com', 'HTTP_REFERER': 'https://www.imoveisrealiza.com/imoveis/para-alugar/casa/dom-feliciano/viamao?suites=2+', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/imoveis/para-alugar/casa/dom-feliciano/viamao', 'QUERY_STRING': 'suites=2+?suites=2+', 'REMOTE_ADDR': '34.201.28.181', 'REMOTE_PORT': '38780', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/imoveis/para-alugar/casa/dom-feliciano/viamao?suites=2+?suites=2+', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'imoveisrealiza.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'ip-172-31-37-157', 'uwsgi.version': '2.0.12-debian', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7fa72487e420>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7fa721d221e0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}> |
n | u'suites' |
FIELDS_SYSTEM | ['orderby', 'range'] |
v | '2 ?suites=2 ' |
./robust/site_2.py
in go_api
)
if not is_remote:
print '\n\n>> API [action: ', action, ']:', url
print '>> Key:', KEY_ACCESS, '\n\n'
rq = urllib2.Request(url, headers={'Authorization': KEY_ACCESS })
fd = urllib2.urlopen(rq)...
data = json.loads( clear_string( fd.read() ), encoding='utf8' )
fd.close()
return data
Variable | Value |
---|---|
qs | 'suites=2+%3Fsuites%3D2&nolike=ref&template_result_list=content%2Fresult-imoveis.html&recordcountpage=10&ref=None&range=valor%2Cdorm%2Celevadores%2Cnum_garagens&site_device=bot&site_user_agent=Spider+%2F+Other+%2F+claudebot' |
rq | <urllib2.Request instance at 0x7fa72409d050> |
_user_agent | 'Spider / Other / claudebot' |
url | 'https://api.iwrobust.com/ws/search/imoveisrealiza/?suites=2+%3Fsuites%3D2&nolike=ref&template_result_list=content%2Fresult-imoveis.html&recordcountpage=10&ref=None&range=valor%2Cdorm%2Celevadores%2Cnum_garagens&site_device=bot&site_user_agent=Spider+%2F+Other+%2F+claudebot' |
KEY_ACCESS | '789c4b344c324a364e3149354db5d4cd2c020023ca0495' |
querystring | {'nolike': 'ref', 'range': 'valor,dorm,elevadores,num_garagens', 'recordcountpage': 10, 'ref': None, u'suites': '2 ?suites=2', 'template_result_list': 'content/result-imoveis.html'} |
request | <WSGIRequest GET:<QueryDict: {u'suites': [u'2 ?suites=2 ']}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', 'CSRF_COOKIE': '57a3f5c892b9e9d9da3118d2c37e2955', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'imoveisrealiza.com', 'HTTP_REFERER': 'https://www.imoveisrealiza.com/imoveis/para-alugar/casa/dom-feliciano/viamao?suites=2+', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/imoveis/para-alugar/casa/dom-feliciano/viamao', 'QUERY_STRING': 'suites=2+?suites=2+', 'REMOTE_ADDR': '34.201.28.181', 'REMOTE_PORT': '38780', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/imoveis/para-alugar/casa/dom-feliciano/viamao?suites=2+?suites=2+', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'imoveisrealiza.com', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'ip-172-31-37-157', 'uwsgi.version': '2.0.12-debian', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7fa72487e420>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7fa721d221e0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}> |
NICK_NAME | 'imoveisrealiza' |
device | 'bot' |
ua | <user_agents.parsers.UserAgent object at 0x7fa721e56fd0> |
action | 'search' |
/usr/lib/python2.7/urllib2.py
in urlopen
elif context:
https_handler = HTTPSHandler(context=context)
opener = build_opener(https_handler)
elif _opener is None:
_opener = opener = build_opener()
else:
opener = _opener
return opener.open(url, data, timeout)...
def install_opener(opener):
global _opener
_opener = opener
# do these error classes make sense?
Variable | Value |
---|---|
context | None |
url | <urllib2.Request instance at 0x7fa72409d050> |
data | None |
capath | None |
opener | <urllib2.OpenerDirector instance at 0x7fa722322b00> |
timeout | <object object at 0x7fa72b2ba0b0> |
cafile | None |
cadefault | False |
/usr/lib/python2.7/urllib2.py
in open
response = self._open(req, data)
# post-process response
meth_name = protocol+"_response"
for processor in self.process_response.get(protocol, []):
meth = getattr(processor, meth_name)
response = meth(req, response)...
return response
def _open(self, req, data=None):
result = self._call_chain(self.handle_open, 'default',
'default_open', req)
Variable | Value |
---|---|
protocol | 'https' |
self | <urllib2.OpenerDirector instance at 0x7fa722322b00> |
req | <urllib2.Request instance at 0x7fa72409d050> |
meth_name | 'https_response' |
processor | <urllib2.HTTPErrorProcessor instance at 0x7fa722322c68> |
timeout | <object object at 0x7fa72b2ba0b0> |
meth | <bound method HTTPErrorProcessor.http_response of <urllib2.HTTPErrorProcessor instance at 0x7fa722322c68>> |
data | None |
response | <addinfourl at 140355810053296 whose fp = <socket._fileobject object at 0x7fa72232e5d0>> |
fullurl | <urllib2.Request instance at 0x7fa72409d050> |
/usr/lib/python2.7/urllib2.py
in http_response
def http_response(self, request, response):
code, msg, hdrs = response.code, response.msg, response.info()
# According to RFC 2616, "2xx" code indicates that the client's
# request was successfully received, understood, and accepted.
if not (200 <= code < 300):
response = self.parent.error(
'http', request, response, code, msg, hdrs)...
return response
https_response = http_response
class HTTPDefaultErrorHandler(BaseHandler):
Variable | Value |
---|---|
code | 502 |
hdrs | <httplib.HTTPMessage instance at 0x7fa721dffcf8> |
self | <urllib2.HTTPErrorProcessor instance at 0x7fa722322c68> |
request | <urllib2.Request instance at 0x7fa72409d050> |
msg | 'Bad Gateway' |
response | <addinfourl at 140355810053296 whose fp = <socket._fileobject object at 0x7fa72232e5d0>> |
/usr/lib/python2.7/urllib2.py
in error
args = (dict, proto, meth_name) + args
result = self._call_chain(*args)
if result:
return result
if http_err:
args = (dict, 'default', 'http_error_default') + orig_args
return self._call_chain(*args)...
# XXX probably also want an abstract factory that knows when it makes
# sense to skip a superclass in favor of a subclass and when it might
# make sense to include both
def build_opener(*handlers):
Variable | Value |
---|---|
orig_args | (<urllib2.Request instance at 0x7fa72409d050>, <addinfourl at 140355810053296 whose fp = <socket._fileobject object at 0x7fa72232e5d0>>, 502, 'Bad Gateway', <httplib.HTTPMessage instance at 0x7fa721dffcf8>) |
proto | 502 |
self | <urllib2.OpenerDirector instance at 0x7fa722322b00> |
args | ({301: [<urllib2.HTTPRedirectHandler instance at 0x7fa722322a28>], 302: [<urllib2.HTTPRedirectHandler instance at 0x7fa722322a28>], 303: [<urllib2.HTTPRedirectHandler instance at 0x7fa722322a28>], 307: [<urllib2.HTTPRedirectHandler instance at 0x7fa722322a28>], 'default': [<urllib2.HTTPDefaultErrorHandler instance at 0x7fa722322c20>]}, 'default', 'http_error_default', <urllib2.Request instance at 0x7fa72409d050>, <addinfourl at 140355810053296 whose fp = <socket._fileobject object at 0x7fa72232e5d0>>, 502, 'Bad Gateway', <httplib.HTTPMessage instance at 0x7fa721dffcf8>) |
meth_name | 'http_error_502' |
dict | {301: [<urllib2.HTTPRedirectHandler instance at 0x7fa722322a28>], 302: [<urllib2.HTTPRedirectHandler instance at 0x7fa722322a28>], 303: [<urllib2.HTTPRedirectHandler instance at 0x7fa722322a28>], 307: [<urllib2.HTTPRedirectHandler instance at 0x7fa722322a28>], 'default': [<urllib2.HTTPDefaultErrorHandler instance at 0x7fa722322c20>]} |
result | None |
http_err | 1 |
/usr/lib/python2.7/urllib2.py
in _call_chain
# Handlers raise an exception if no one else should try to handle
# the request, or return None if they can't but another handler
# could. Otherwise, they return the response.
handlers = chain.get(kind, ())
for handler in handlers:
func = getattr(handler, meth_name)
result = func(*args)...
if result is not None:
return result
def open(self, fullurl, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT):
# accept a URL or a Request object
if isinstance(fullurl, basestring):
Variable | Value |
---|---|
kind | 'default' |
chain | {301: [<urllib2.HTTPRedirectHandler instance at 0x7fa722322a28>], 302: [<urllib2.HTTPRedirectHandler instance at 0x7fa722322a28>], 303: [<urllib2.HTTPRedirectHandler instance at 0x7fa722322a28>], 307: [<urllib2.HTTPRedirectHandler instance at 0x7fa722322a28>], 'default': [<urllib2.HTTPDefaultErrorHandler instance at 0x7fa722322c20>]} |
handlers | [<urllib2.HTTPDefaultErrorHandler instance at 0x7fa722322c20>] |
self | <urllib2.OpenerDirector instance at 0x7fa722322b00> |
args | (<urllib2.Request instance at 0x7fa72409d050>, <addinfourl at 140355810053296 whose fp = <socket._fileobject object at 0x7fa72232e5d0>>, 502, 'Bad Gateway', <httplib.HTTPMessage instance at 0x7fa721dffcf8>) |
meth_name | 'http_error_default' |
handler | <urllib2.HTTPDefaultErrorHandler instance at 0x7fa722322c20> |
func | <bound method HTTPDefaultErrorHandler.http_error_default of <urllib2.HTTPDefaultErrorHandler instance at 0x7fa722322c20>> |
/usr/lib/python2.7/urllib2.py
in http_error_default
return response
https_response = http_response
class HTTPDefaultErrorHandler(BaseHandler):
def http_error_default(self, req, fp, code, msg, hdrs):
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)...
class HTTPRedirectHandler(BaseHandler):
# maximum number of redirections to any single URL
# this is needed because of the state that cookies introduce
max_repeats = 4
# maximum total number of redirections (regardless of URL) before
Variable | Value |
---|---|
fp | <addinfourl at 140355810053296 whose fp = <socket._fileobject object at 0x7fa72232e5d0>> |
code | 502 |
hdrs | <httplib.HTTPMessage instance at 0x7fa721dffcf8> |
self | <urllib2.HTTPDefaultErrorHandler instance at 0x7fa722322c20> |
req | <urllib2.Request instance at 0x7fa72409d050> |
msg | 'Bad Gateway' |
Variable | Value |
---|---|
suites | u'2 ?suites=2 ' |
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
wsgi.multiprocess | True |
HTTP_REFERER | 'https://www.imoveisrealiza.com/imoveis/para-alugar/casa/dom-feliciano/viamao?suites=2+' |
SCRIPT_NAME | u'' |
REQUEST_METHOD | 'GET' |
PATH_INFO | u'/imoveis/para-alugar/casa/dom-feliciano/viamao' |
SERVER_PROTOCOL | 'HTTP/1.1' |
QUERY_STRING | 'suites=2+?suites=2+' |
CONTENT_LENGTH | '' |
HTTP_USER_AGENT | 'claudebot' |
SERVER_NAME | 'imoveisrealiza.com' |
REMOTE_ADDR | '34.201.28.181' |
wsgi.url_scheme | 'https' |
SERVER_PORT | '443' |
uwsgi.node | 'ip-172-31-37-157' |
DOCUMENT_ROOT | '/usr/share/nginx/html' |
wsgi.input | <uwsgi._Input object at 0x7fa721d221e0> |
HTTP_HOST | 'imoveisrealiza.com' |
HTTPS | 'on' |
wsgi.multithread | False |
REQUEST_URI | '/imoveis/para-alugar/casa/dom-feliciano/viamao?suites=2+?suites=2+' |
HTTP_ACCEPT | '*/*' |
wsgi.version | (1, 0) |
wsgi.run_once | False |
wsgi.errors | <open file 'wsgi_errors', mode 'w' at 0x7fa72487e420> |
REMOTE_PORT | '38780' |
REQUEST_SCHEME | 'https' |
uwsgi.version | '2.0.12-debian' |
CONTENT_TYPE | '' |
wsgi.file_wrapper | '' |
CSRF_COOKIE | '57a3f5c892b9e9d9da3118d2c37e2955' |
imoveisrealiza.settings
Setting | Value |
---|---|
DATA_ADD_SEARCH | {'recordcountpage': 10} |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
LANGUAGE_CODE | 'pt-br' |
ROOT_URLCONF | 'robust.bases.urls' |
MANAGERS | () |
DEFAULT_CHARSET | 'utf-8' |
STATIC_ROOT | '' |
TEST_DATABASE_CHARSET | None |
WHATSAPP_CLIENT | {'contato': '(51) <span>99976-0866</span>', 'locacao': '(51) <span>99583-8610</span>', 'venda': '(51) <span>99976-0866</span>'} |
MESSAGE_STORAGE | 'django.contrib.messages.storage.user_messages.LegacyFallbackStorage' |
KEY_IMOVIEW | '90pUhk8gAdHnDPxhegxOrPyEIDIp48+Q2v31MgsKi9o=' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
SEND_BROKEN_LINK_EMAILS | False |
CONFIG_SEARCH | {'range': 'valor,dorm,elevadores,num_garagens', 'recordcountpage': 10, 'template_result_list': 'content/result-imoveis.html'} |
STATICFILES_FINDERS | ('django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder') |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_NAME | 'sessionid' |
VERSION | '0.10' |
COMMENTS_MODERATORS_GROUP | None |
TIME_INPUT_FORMATS | ('%H:%M:%S', '%H:%M') |
DATABASES | {'default': {'ENGINE': 'django.db.backends.dummy', 'HOST': '', 'NAME': '', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST_CHARSET': None, 'TEST_COLLATION': None, 'TEST_MIRROR': None, 'TEST_NAME': None, 'TIME_ZONE': 'America/Sao_Paulo', 'USER': ''}} |
GOOGLE_ANALYTICS | '' |
TEMPLATE_DEBUG | True |
FILE_UPLOAD_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ('django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler') |
DEFAULT_CONTENT_TYPE | 'text/html' |
TEMPLATES_ROOT | '/var/www/django/_sites/imoveisrealiza/_templates' |
APPEND_SLASH | True |
FIRST_DAY_OF_WEEK | 0 |
IMOVEIS_SELECAO | <imoveisrealiza.settings.__imoveis_selecao__ instance at 0x7fa72484e8c0> |
YEAR_MONTH_FORMAT | 'F Y' |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache', 'LOCATION': '/var/www/django/_sites/imoveisrealiza/_cache', 'TIMEOUT': 21600}} |
SERVER_EMAIL | 'root@localhost' |
SESSION_COOKIE_PATH | '/' |
IGNORABLE_404_ENDS | ('mail.pl', 'mailform.pl', 'mail.cgi', 'mailform.cgi', 'favicon.ico', '.php') |
MIDDLEWARE_CLASSES | ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.middleware.csrf.CsrfResponseMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django_user_agents.middleware.UserAgentMiddleware') |
USE_I18N | True |
THOUSAND_SEPARATOR | ',' |
SECRET_KEY | '********************' |
CRM | 'imoview' |
FILE_UPLOAD_TEMP_DIR | None |
TRANSACTIONS_MANAGED | False |
LOGGING_CONFIG | 'django.utils.log.dictConfig' |
TEMPLATE_LOADERS | ('django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader') |
DATABASE_ROUTERS | [] |
CSRF_COOKIE_NAME | 'csrftoken' |
TEST_DATABASE_COLLATION | None |
FORCE_SCRIPT_NAME | None |
USE_X_FORWARDED_HOST | False |
SESSION_COOKIE_SECURE | False |
CSRF_COOKIE_DOMAIN | None |
FILE_CHARSET | 'utf-8' |
DEBUG | True |
DOMAIN_CLIENT | 'imoveisrealiza.com' |
SESSION_FILE_PATH | None |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
INSTALLED_APPS | ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'robust'] |
LANGUAGES | (('ar', 'Arabic'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('bn', 'Bengali'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('nl', 'Dutch'), ('no', 'Norwegian'), ('nb', 'Norwegian Bokmal'), ('nn', 'Norwegian Nynorsk'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')) |
DATABASE_ENGINE | '' |
DATABASE_NAME | '' |
PREFIX_VALOR | 'R$ ' |
COMMENTS_FIRST_FEW | 0 |
PREPEND_WWW | False |
SESSION_COOKIE_HTTPONLY | False |
DATABASE_PORT | '' |
DEBUG_PROPAGATE_EXCEPTIONS | False |
SITE_TITLE | 'Realiza Im\xc3\xb3veis - Imobili\xc3\xa1ria de Viam\xc3\xa3o, RS' |
MONTH_DAY_FORMAT | 'F j' |
LOGIN_URL | '/accounts/login/' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
TIME_FORMAT | 'P' |
SITE_DESCRIPTION | 'Imobili\xc3\xa1ria possui uma equipe preparada para conduzir negocia\xc3\xa7\xc3\xb5es imobili\xc3\xa1rias.' |
DATE_INPUT_FORMATS | ('%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y') |
AUTHENTICATION_BACKENDS | ('django.contrib.auth.backends.ModelBackend',) |
EMAIL_HOST_PASSWORD | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
CACHE_MIDDLEWARE_ALIAS | 'default' |
SESSION_SAVE_EVERY_REQUEST | False |
ADMIN_MEDIA_PREFIX | '/static/admin/' |
NUMBER_GROUPING | 0 |
ROOTDIR | '/var/www/django/_sites/imoveisrealiza' |
SESSION_ENGINE | 'django.contrib.sessions.backends.file' |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
COMMENTS_SKETCHY_USERS_GROUP | None |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGGING | {'disable_existing_loggers': False, 'handlers': {'mail_admins': {'class': 'django.utils.log.AdminEmailHandler', 'level': 'ERROR'}}, 'loggers': {'django.request': {'handlers': ['mail_admins'], 'level': 'ERROR', 'propagate': True}}, 'version': 1} |
EMAIL_CLIENT | {'contato': 'realiza@imoveisrealiza.com;mario@imoveisrealiza.com', 'locacao': 'realiza@imoveisrealiza.com;mario@imoveisrealiza.com;locacao@imoveisrealiza.com', 'trabalhe_conosco': 'realiza@imoveisrealiza.com;mario@imoveisrealiza.com', 'venda': 'realiza@imoveisrealiza.com;mario@imoveisrealiza.com'} |
CACHE_MIDDLEWARE_KEY_PREFIX | '' |
LOCALE_PATHS | () |
TEMPLATE_STRING_IF_INVALID | '' |
COMMENTS_ALLOW_PROFANITIES | False |
HTTP_HOST | 'imoveisrealiza.com' |
LOGOUT_URL | '/accounts/logout/' |
EMAIL_USE_TLS | False |
TEMPLATE_DIRS | ('/var/www/django/_sites/imoveisrealiza/_templates', '/var/www/django/_sites/imoveisrealiza/_hotsites') |
FIXTURE_DIRS | () |
EMAIL_HOST | 'localhost' |
DATE_FORMAT | 'N j, Y' |
MEDIA_ROOT | '/var/www/django/_sites/imoveisrealiza/_static' |
DATABASE_HOST | '' |
ADMINS | () |
FORMAT_MODULE_PATH | None |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
NAME_CLIENT | 'Realiza Im\xc3\xb3veis' |
STATICFILES_DIRS | () |
MEDIA_URL | '' |
DATETIME_FORMAT | 'N j, Y, P' |
IGNORABLE_404_STARTS | ('/cgi-bin/', '/_vti_bin', '/_vti_inf') |
GOOGLE_MAPS_KEY | '' |
SITE_ID | 1 |
DISALLOWED_USER_AGENTS | () |
ALLOWED_INCLUDE_ROOTS | () |
URL_VALIDATOR_USER_AGENT | 'Django/1.3.5 (http://www.djangoproject.com)' |
DECIMAL_SEPARATOR | '.' |
SHORT_DATE_FORMAT | 'm/d/Y' |
DATABASE_USER | '' |
TEST_DATABASE_NAME | None |
TEST_RUNNER | 'django.test.simple.DjangoTestSuiteRunner' |
NICK_NAME | 'imoveisrealiza' |
PHONE_CLIENT | {'contato': '(51) <span>3485-2443</span>', 'locacao': '(51) <span>3485-2443</span>', 'venda': '(51) <span>3485-2443</span>'} |
TIME_ZONE | 'America/Sao_Paulo' |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
LANGUAGE_COOKIE_NAME | 'django_language' |
DEFAULT_TABLESPACE | '' |
TEMPLATE_CONTEXT_PROCESSORS | ('django.core.context_processors.request',) |
HOTSITES | '/var/www/django/_sites/imoveisrealiza/_hotsites' |
SESSION_COOKIE_AGE | 900 |
SETTINGS_MODULE | 'imoveisrealiza.settings' |
USE_ETAGS | False |
ROBUST_API | {'key': 'a1b2c3d4e5e9-ir', 'name': 'imoveisrealiza'} |
LANGUAGES_BIDI | ('he', 'ar', 'fa') |
DEFAULT_INDEX_TABLESPACE | '' |
INTERNAL_IPS | () |
STATIC_URL | None |
EMAIL_PORT | 25 |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
ABSOLUTE_URL_OVERRIDES | {} |
DATABASE_OPTIONS | {} |
CACHE_MIDDLEWARE_SECONDS | 600 |
FORMAT_CARACTERISTICAS_BAIRROS | '<li><span>%(label)s</span></li>' |
BANNED_IPS | () |
DATETIME_INPUT_FORMATS | ('%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M', '%m/%d/%y') |
DATABASE_PASSWORD | '********************' |
ADMIN_FOR | () |
PROFANITIES_LIST | '********************' |
EMAIL_HOST_USER | '' |
COMMENTS_BANNED_USERS_GROUP | None |
You're seeing this error because you have DEBUG = True
in your
Django settings file. Change that to False
, and Django will
display a standard 500 page.