[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)
Request Method: | GET |
---|---|
Request URL: | https://backend.citizine.tv/accounts/twitter/login/?process=login&next=%252Farticle%252Fsarah-boyd |
Django Version: | 1.8.4 |
Exception Type: | SSLError |
Exception Value: | [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) |
Exception Location: | /opt/python/run/venv/lib/python2.7/site-packages/requests/adapters.py in send, line 431 |
Python Executable: | /opt/python/run/venv/bin/python |
Python Version: | 2.7.10 |
Python Path: | ['/opt/python/run/venv/lib64/python2.7/site-packages', '/opt/python/run/venv/lib/python2.7/site-packages', '/opt/python/current/app/citizine', '/opt/python/current/app', '', '/opt/python/run/baselinenv/local/lib64/python2.7/site-packages', '/opt/python/run/baselinenv/local/lib/python2.7/site-packages', '/opt/python/run/baselinenv/lib64/python2.7', '/opt/python/run/baselinenv/lib/python2.7', '/opt/python/run/baselinenv/lib64/python2.7/site-packages', '/opt/python/run/baselinenv/lib/python2.7/site-packages', '/opt/python/run/baselinenv/lib64/python2.7/lib-dynload', '/usr/lib64/python2.7', '/usr/lib/python2.7'] |
Server time: | Fri, 29 Mar 2024 04:23:32 -0700 |
/opt/python/run/venv/lib/python2.7/site-packages/django/core/handlers/base.py
in get_response
response = middleware_method(request, callback, callback_args, callback_kwargs)
if response:
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)...
except Exception as 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 |
---|---|
e | SSLError(SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)'),),) |
callback_args | () |
resolver_match | ResolverMatch(func=allauth.socialaccount.providers.oauth.views.view, args=(), kwargs={}, url_name=twitter_login, app_name=None, namespaces=[]) |
middleware_method | <bound method DebugToolbarMiddleware.process_view of <debug_toolbar.middleware.DebugToolbarMiddleware object at 0x7fcaee6d2050>> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7fcaf37eedd0> |
request | "<WSGIRequest\npath:/accounts/twitter/login/,\nGET:<QueryDict: {u'process': [u'login'], u'next': [u'%2Farticle%2Fsarah-boyd']}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{'CONTEXT_DOCUMENT_ROOT': '/var/www/html',\n 'CONTEXT_PREFIX': '',\n u'CSRF_COOKIE': u'TF0iJ4qRLTcGvFSOI9vzI9EjKLPkY7Te',\n 'DOCUMENT_ROOT': '/var/www/html',\n 'GATEWAY_INTERFACE': 'CGI/1.1',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_CONNECTION': 'keep-alive',\n 'HTTP_HOST': 'backend.citizine.tv',\n 'HTTP_USER_AGENT': 'claudebot',\n 'HTTP_X_FORWARDED_FOR': '3.235.140.73',\n 'HTTP_X_FORWARDED_PORT': '443',\n 'HTTP_X_FORWARDED_PROTO': 'https',\n 'LD_LIBRARY_PATH': '/usr/local/lib/:',\n 'PATH_INFO': u'/accounts/twitter/login/',\n 'PATH_TRANSLATED': '/opt/python/current/app/citizine/wsgi.py/accounts/twitter/login/',\n 'QUERY_STRING': 'process=login&next=%252Farticle%252Fsarah-boyd',\n 'REMOTE_ADDR': '172.31.6.248',\n 'REMOTE_PORT': '6014',\n 'REQUEST_METHOD': 'GET',\n 'REQUEST_SCHEME': 'http',\n 'REQUEST_URI': '/accounts/twitter/login/?process=login&next=%252Farticle%252Fsarah-boyd',\n 'SCRIPT_FILENAME': '/opt/python/current/app/citizine/wsgi.py',\n 'SCRIPT_NAME': u'',\n 'SERVER_ADDR': '172.31.1.49',\n 'SERVER_ADMIN': 'root@localhost',\n 'SERVER_NAME': 'backend.citizine.tv',\n 'SERVER_PORT': '80',\n 'SERVER_PROTOCOL': 'HTTP/1.1',\n 'SERVER_SIGNATURE': '',\n 'SERVER_SOFTWARE': 'Apache/2.4.23 (Amazon) mod_wsgi/3.5 Python/2.7.10',\n 'mod_wsgi.application_group': 'ip-172-31-1-49.ec2.internal|',\n 'mod_wsgi.callable_object': 'application',\n 'mod_wsgi.enable_sendfile': '0',\n 'mod_wsgi.handler_script': '',\n 'mod_wsgi.input_chunked': '0',\n 'mod_wsgi.listener_host': '',\n 'mod_wsgi.listener_port': '80',\n 'mod_wsgi.process_group': 'wsgi',\n 'mod_wsgi.queue_start': '1711711411939432',\n 'mod_wsgi.request_handler': 'wsgi-script',\n 'mod_wsgi.script_reloading': '1',\n 'mod_wsgi.version': (3, 5),\n 'wsgi.errors': <mod_wsgi.Log object at 0x7fcaee071e30>,\n 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x7fcaee170990>,\n 'wsgi.input': <mod_wsgi.Input object at 0x7fcaed963570>,\n 'wsgi.multiprocess': True,\n 'wsgi.multithread': True,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'http',\n 'wsgi.version': (1, 0)}>" |
callback | <function view at 0x7fcaee8cf2a8> |
wrapped_callback | <function view at 0x7fcaee8cf2a8> |
resolver | <RegexURLResolver 'citizine.urls' (None:None) ^/> |
callback_kwargs | {} |
response | None |
urlconf | 'citizine.urls' |
/opt/python/run/venv/lib/python2.7/site-packages/allauth/socialaccount/providers/oauth/views.py
in view
class OAuthView(object):
@classmethod
def adapter_view(cls, adapter):
def view(request, *args, **kwargs):
self = cls()
self.request = request
self.adapter = adapter()
return self.dispatch(request, *args, **kwargs)...
return view
def _get_client(self, request, callback_url):
provider = self.adapter.get_provider()
app = provider.get_app(request)
scope = ' '.join(provider.get_scope(request))
Variable | Value |
---|---|
self | <allauth.socialaccount.providers.oauth.views.OAuthLoginView object at 0x7fcaedfe6310> |
args | () |
request | "<WSGIRequest\npath:/accounts/twitter/login/,\nGET:<QueryDict: {u'process': [u'login'], u'next': [u'%2Farticle%2Fsarah-boyd']}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{'CONTEXT_DOCUMENT_ROOT': '/var/www/html',\n 'CONTEXT_PREFIX': '',\n u'CSRF_COOKIE': u'TF0iJ4qRLTcGvFSOI9vzI9EjKLPkY7Te',\n 'DOCUMENT_ROOT': '/var/www/html',\n 'GATEWAY_INTERFACE': 'CGI/1.1',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_CONNECTION': 'keep-alive',\n 'HTTP_HOST': 'backend.citizine.tv',\n 'HTTP_USER_AGENT': 'claudebot',\n 'HTTP_X_FORWARDED_FOR': '3.235.140.73',\n 'HTTP_X_FORWARDED_PORT': '443',\n 'HTTP_X_FORWARDED_PROTO': 'https',\n 'LD_LIBRARY_PATH': '/usr/local/lib/:',\n 'PATH_INFO': u'/accounts/twitter/login/',\n 'PATH_TRANSLATED': '/opt/python/current/app/citizine/wsgi.py/accounts/twitter/login/',\n 'QUERY_STRING': 'process=login&next=%252Farticle%252Fsarah-boyd',\n 'REMOTE_ADDR': '172.31.6.248',\n 'REMOTE_PORT': '6014',\n 'REQUEST_METHOD': 'GET',\n 'REQUEST_SCHEME': 'http',\n 'REQUEST_URI': '/accounts/twitter/login/?process=login&next=%252Farticle%252Fsarah-boyd',\n 'SCRIPT_FILENAME': '/opt/python/current/app/citizine/wsgi.py',\n 'SCRIPT_NAME': u'',\n 'SERVER_ADDR': '172.31.1.49',\n 'SERVER_ADMIN': 'root@localhost',\n 'SERVER_NAME': 'backend.citizine.tv',\n 'SERVER_PORT': '80',\n 'SERVER_PROTOCOL': 'HTTP/1.1',\n 'SERVER_SIGNATURE': '',\n 'SERVER_SOFTWARE': 'Apache/2.4.23 (Amazon) mod_wsgi/3.5 Python/2.7.10',\n 'mod_wsgi.application_group': 'ip-172-31-1-49.ec2.internal|',\n 'mod_wsgi.callable_object': 'application',\n 'mod_wsgi.enable_sendfile': '0',\n 'mod_wsgi.handler_script': '',\n 'mod_wsgi.input_chunked': '0',\n 'mod_wsgi.listener_host': '',\n 'mod_wsgi.listener_port': '80',\n 'mod_wsgi.process_group': 'wsgi',\n 'mod_wsgi.queue_start': '1711711411939432',\n 'mod_wsgi.request_handler': 'wsgi-script',\n 'mod_wsgi.script_reloading': '1',\n 'mod_wsgi.version': (3, 5),\n 'wsgi.errors': <mod_wsgi.Log object at 0x7fcaee071e30>,\n 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x7fcaee170990>,\n 'wsgi.input': <mod_wsgi.Input object at 0x7fcaed963570>,\n 'wsgi.multiprocess': True,\n 'wsgi.multithread': True,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'http',\n 'wsgi.version': (1, 0)}>" |
kwargs | {} |
adapter | <class 'allauth.socialaccount.providers.twitter.views.TwitterOAuthAdapter'> |
cls | <class 'allauth.socialaccount.providers.oauth.views.OAuthLoginView'> |
/opt/python/run/venv/lib/python2.7/site-packages/allauth/socialaccount/providers/oauth/views.py
in dispatch
action = request.GET.get('action', AuthAction.AUTHENTICATE)
provider = self.adapter.get_provider()
auth_url = provider.get_auth_url(request,
action) or self.adapter.authorize_url
auth_params = provider.get_auth_params(request, action)
client = self._get_client(request, callback_url)
try:
return client.get_redirect(auth_url, auth_params)...
except OAuthError as e:
return render_authentication_error(request,
self.adapter.provider_id,
exception=e)
Variable | Value |
---|---|
self | <allauth.socialaccount.providers.oauth.views.OAuthLoginView object at 0x7fcaedfe6310> |
request | "<WSGIRequest\npath:/accounts/twitter/login/,\nGET:<QueryDict: {u'process': [u'login'], u'next': [u'%2Farticle%2Fsarah-boyd']}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{'CONTEXT_DOCUMENT_ROOT': '/var/www/html',\n 'CONTEXT_PREFIX': '',\n u'CSRF_COOKIE': u'TF0iJ4qRLTcGvFSOI9vzI9EjKLPkY7Te',\n 'DOCUMENT_ROOT': '/var/www/html',\n 'GATEWAY_INTERFACE': 'CGI/1.1',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_CONNECTION': 'keep-alive',\n 'HTTP_HOST': 'backend.citizine.tv',\n 'HTTP_USER_AGENT': 'claudebot',\n 'HTTP_X_FORWARDED_FOR': '3.235.140.73',\n 'HTTP_X_FORWARDED_PORT': '443',\n 'HTTP_X_FORWARDED_PROTO': 'https',\n 'LD_LIBRARY_PATH': '/usr/local/lib/:',\n 'PATH_INFO': u'/accounts/twitter/login/',\n 'PATH_TRANSLATED': '/opt/python/current/app/citizine/wsgi.py/accounts/twitter/login/',\n 'QUERY_STRING': 'process=login&next=%252Farticle%252Fsarah-boyd',\n 'REMOTE_ADDR': '172.31.6.248',\n 'REMOTE_PORT': '6014',\n 'REQUEST_METHOD': 'GET',\n 'REQUEST_SCHEME': 'http',\n 'REQUEST_URI': '/accounts/twitter/login/?process=login&next=%252Farticle%252Fsarah-boyd',\n 'SCRIPT_FILENAME': '/opt/python/current/app/citizine/wsgi.py',\n 'SCRIPT_NAME': u'',\n 'SERVER_ADDR': '172.31.1.49',\n 'SERVER_ADMIN': 'root@localhost',\n 'SERVER_NAME': 'backend.citizine.tv',\n 'SERVER_PORT': '80',\n 'SERVER_PROTOCOL': 'HTTP/1.1',\n 'SERVER_SIGNATURE': '',\n 'SERVER_SOFTWARE': 'Apache/2.4.23 (Amazon) mod_wsgi/3.5 Python/2.7.10',\n 'mod_wsgi.application_group': 'ip-172-31-1-49.ec2.internal|',\n 'mod_wsgi.callable_object': 'application',\n 'mod_wsgi.enable_sendfile': '0',\n 'mod_wsgi.handler_script': '',\n 'mod_wsgi.input_chunked': '0',\n 'mod_wsgi.listener_host': '',\n 'mod_wsgi.listener_port': '80',\n 'mod_wsgi.process_group': 'wsgi',\n 'mod_wsgi.queue_start': '1711711411939432',\n 'mod_wsgi.request_handler': 'wsgi-script',\n 'mod_wsgi.script_reloading': '1',\n 'mod_wsgi.version': (3, 5),\n 'wsgi.errors': <mod_wsgi.Log object at 0x7fcaee071e30>,\n 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x7fcaee170990>,\n 'wsgi.input': <mod_wsgi.Input object at 0x7fcaed963570>,\n 'wsgi.multiprocess': True,\n 'wsgi.multithread': True,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'http',\n 'wsgi.version': (1, 0)}>" |
auth_params | {} |
client | <allauth.socialaccount.providers.oauth.client.OAuthClient object at 0x7fcaedfe6f90> |
auth_url | 'https://api.twitter.com/oauth/authenticate' |
provider | <allauth.socialaccount.providers.twitter.provider.TwitterProvider object at 0x7fcaeed4d410> |
action | 'authenticate' |
callback_url | u'/accounts/twitter/login/callback/' |
/opt/python/run/venv/lib/python2.7/site-packages/allauth/socialaccount/providers/oauth/client.py
in get_redirect
return True
def get_redirect(self, authorization_url, extra_params):
"""
Returns a ``HttpResponseRedirect`` object to redirect the user
to the URL the OAuth provider handles authorization.
"""
request_token = self._get_request_token()...
params = {'oauth_token': request_token['oauth_token'],
'oauth_callback': self.request.build_absolute_uri(
self.callback_url)}
params.update(extra_params)
url = authorization_url + '?' + urlencode(params)
return HttpResponseRedirect(url)
Variable | Value |
---|---|
authorization_url | 'https://api.twitter.com/oauth/authenticate' |
self | <allauth.socialaccount.providers.oauth.client.OAuthClient object at 0x7fcaedfe6f90> |
extra_params | {} |
/opt/python/run/venv/lib/python2.7/site-packages/allauth/socialaccount/providers/oauth/client.py
in _get_request_token
if self.parameters:
get_params.update(self.parameters)
get_params['oauth_callback'] \
= self.request.build_absolute_uri(self.callback_url)
rt_url = self.request_token_url + '?' + urlencode(get_params)
oauth = OAuth1(self.consumer_key,
client_secret=self.consumer_secret)
response = requests.post(url=rt_url, auth=oauth)...
if response.status_code not in [200, 201]:
raise OAuthError(
_('Invalid response while obtaining request token from "%s".') % get_token_prefix(self.request_token_url))
self.request_token = dict(parse_qsl(response.text))
self.request.session['oauth_%s_request_token' % get_token_prefix(self.request_token_url)] = self.request_token
return self.request_token
Variable | Value |
---|---|
oauth | <requests_oauthlib.oauth1_auth.OAuth1 object at 0x7fcaedfe67d0> |
rt_url | 'https://api.twitter.com/oauth/request_token?oauth_callback=https%3A%2F%2Fbackend.citizine.tv%2Faccounts%2Ftwitter%2Flogin%2Fcallback%2F' |
self | <allauth.socialaccount.providers.oauth.client.OAuthClient object at 0x7fcaedfe6f90> |
get_params | {'oauth_callback': 'https://backend.citizine.tv/accounts/twitter/login/callback/'} |
/opt/python/run/venv/lib/python2.7/site-packages/requests/api.py
in post
:param data: (optional) Dictionary, bytes, or file-like object to send in the body of the :class:`Request`.
:param json: (optional) json data to send in the body of the :class:`Request`.
:param \*\*kwargs: Optional arguments that ``request`` takes.
:return: :class:`Response <Response>` object
:rtype: requests.Response
"""
return request('post', url, data=data, json=json, **kwargs)...
def put(url, data=None, **kwargs):
"""Sends a PUT request.
:param url: URL for the new :class:`Request` object.
Variable | Value |
---|---|
url | 'https://api.twitter.com/oauth/request_token?oauth_callback=https%3A%2F%2Fbackend.citizine.tv%2Faccounts%2Ftwitter%2Flogin%2Fcallback%2F' |
json | None |
data | None |
kwargs | {'auth': <requests_oauthlib.oauth1_auth.OAuth1 object at 0x7fcaedfe67d0>} |
/opt/python/run/venv/lib/python2.7/site-packages/requests/api.py
in request
>>> import requests
>>> req = requests.request('GET', 'http://httpbin.org/get')
<Response [200]>
"""
session = sessions.Session()
response = session.request(method=method, url=url, **kwargs)...
# By explicitly closing the session, we avoid leaving sockets open which
# can trigger a ResourceWarning in some cases, and look like a memory leak
# in others.
session.close()
return response
Variable | Value |
---|---|
url | 'https://api.twitter.com/oauth/request_token?oauth_callback=https%3A%2F%2Fbackend.citizine.tv%2Faccounts%2Ftwitter%2Flogin%2Fcallback%2F' |
session | <requests.sessions.Session object at 0x7fcaee108290> |
method | 'post' |
kwargs | {'auth': <requests_oauthlib.oauth1_auth.OAuth1 object at 0x7fcaedfe67d0>, 'data': None, 'json': None} |
/opt/python/run/venv/lib/python2.7/site-packages/requests/sessions.py
in request
# Send the request.
send_kwargs = {
'timeout': timeout,
'allow_redirects': allow_redirects,
}
send_kwargs.update(settings)
resp = self.send(prep, **send_kwargs)...
return resp
def get(self, url, **kwargs):
"""Sends a GET request. Returns :class:`Response` object.
Variable | Value |
---|---|
files | None |
cookies | None |
stream | None |
settings | {'cert': None, 'proxies': {}, 'stream': False, 'verify': True} |
url | 'https://api.twitter.com/oauth/request_token?oauth_callback=https%3A%2F%2Fbackend.citizine.tv%2Faccounts%2Ftwitter%2Flogin%2Fcallback%2F' |
verify | None |
self | <requests.sessions.Session object at 0x7fcaee108290> |
req | <Request [POST]> |
cert | None |
auth | <requests_oauthlib.oauth1_auth.OAuth1 object at 0x7fcaedfe67d0> |
prep | <PreparedRequest [POST]> |
headers | None |
json | None |
params | None |
timeout | None |
hooks | None |
send_kwargs | {'allow_redirects': True, 'cert': None, 'proxies': {}, 'stream': False, 'timeout': None, 'verify': True} |
allow_redirects | True |
proxies | {} |
data | None |
method | 'post' |
/opt/python/run/venv/lib/python2.7/site-packages/requests/sessions.py
in send
# Get the appropriate adapter to use
adapter = self.get_adapter(url=request.url)
# Start time (approximately) of the request
start = datetime.utcnow()
# Send the request
r = adapter.send(request, **kwargs)...
# Total elapsed time of the request (approximately)
r.elapsed = datetime.utcnow() - start
# Response manipulation hooks
r = dispatch_hook('response', hooks, r, **kwargs)
Variable | Value |
---|---|
checked_urls | set([]) |
stream | False |
hooks | {'response': []} |
adapter | <requests.adapters.HTTPAdapter object at 0x7fcaee1082d0> |
request | <PreparedRequest [POST]> |
start | datetime.datetime(2024, 3, 29, 11, 23, 31, 958719) |
kwargs | {'cert': None, 'proxies': {}, 'stream': False, 'timeout': None, 'verify': True} |
allow_redirects | True |
self | <requests.sessions.Session object at 0x7fcaee108290> |
/opt/python/run/venv/lib/python2.7/site-packages/requests/adapters.py
in send
raise ConnectionError(e, request=request)
except _ProxyError as e:
raise ProxyError(e)
except (_SSLError, _HTTPError) as e:
if isinstance(e, _SSLError):
raise SSLError(e, request=request)...
elif isinstance(e, ReadTimeoutError):
raise ReadTimeout(e, request=request)
else:
raise
return self.build_response(request, resp)
Variable | Value |
---|---|
proxies | {} |
e | SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)'),) |
stream | False |
url | '/oauth/request_token?oauth_callback=https%3A%2F%2Fbackend.citizine.tv%2Faccounts%2Ftwitter%2Flogin%2Fcallback%2F' |
verify | True |
self | <requests.adapters.HTTPAdapter object at 0x7fcaee1082d0> |
request | <PreparedRequest [POST]> |
cert | None |
timeout | <requests.packages.urllib3.util.timeout.Timeout object at 0x7fcaedf8d6d0> |
chunked | False |
conn | <requests.packages.urllib3.connectionpool.HTTPSConnectionPool object at 0x7fcaedf67450> |
Variable | Value |
---|---|
process | u'login' |
next | u'%2Farticle%2Fsarah-boyd' |
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
mod_wsgi.listener_port | '80' |
CONTEXT_DOCUMENT_ROOT | '/var/www/html' |
SERVER_SOFTWARE | 'Apache/2.4.23 (Amazon) mod_wsgi/3.5 Python/2.7.10' |
SCRIPT_NAME | u'' |
mod_wsgi.enable_sendfile | '0' |
mod_wsgi.handler_script | '' |
SERVER_SIGNATURE | '' |
HTTP_X_FORWARDED_PORT | '443' |
PATH_INFO | u'/accounts/twitter/login/' |
SERVER_PROTOCOL | 'HTTP/1.1' |
QUERY_STRING | 'process=login&next=%252Farticle%252Fsarah-boyd' |
LD_LIBRARY_PATH | '/usr/local/lib/:' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_CONNECTION | 'keep-alive' |
SERVER_NAME | 'backend.citizine.tv' |
REMOTE_ADDR | '172.31.6.248' |
mod_wsgi.queue_start | '1711711411939432' |
mod_wsgi.request_handler | 'wsgi-script' |
wsgi.url_scheme | 'http' |
PATH_TRANSLATED | '/opt/python/current/app/citizine/wsgi.py/accounts/twitter/login/' |
SERVER_PORT | '80' |
wsgi.multiprocess | True |
mod_wsgi.input_chunked | '0' |
SERVER_ADDR | '172.31.1.49' |
DOCUMENT_ROOT | '/var/www/html' |
mod_wsgi.process_group | 'wsgi' |
HTTP_X_FORWARDED_PROTO | 'https' |
SCRIPT_FILENAME | '/opt/python/current/app/citizine/wsgi.py' |
SERVER_ADMIN | 'root@localhost' |
wsgi.input | <mod_wsgi.Input object at 0x7fcaed963570> |
HTTP_HOST | 'backend.citizine.tv' |
CONTEXT_PREFIX | '' |
wsgi.multithread | True |
mod_wsgi.callable_object | 'application' |
REQUEST_URI | '/accounts/twitter/login/?process=login&next=%252Farticle%252Fsarah-boyd' |
HTTP_ACCEPT | '*/*' |
wsgi.version | (1, 0) |
GATEWAY_INTERFACE | 'CGI/1.1' |
HTTP_X_FORWARDED_FOR | '3.235.140.73' |
wsgi.errors | <mod_wsgi.Log object at 0x7fcaee071e30> |
REMOTE_PORT | '6014' |
mod_wsgi.listener_host | '' |
REQUEST_SCHEME | 'http' |
mod_wsgi.version | (3, 5) |
wsgi.run_once | False |
REQUEST_METHOD | 'GET' |
mod_wsgi.application_group | 'ip-172-31-1-49.ec2.internal|' |
mod_wsgi.script_reloading | '1' |
wsgi.file_wrapper | '' |
CSRF_COOKIE | u'TF0iJ4qRLTcGvFSOI9vzI9EjKLPkY7Te' |
citizine.settings.production-admin
Setting | Value |
---|---|
DEBUG_TOOLBAR_PANELS | ('debug_toolbar.panels.versions.VersionsPanel', 'debug_toolbar.panels.timer.TimerPanel', 'debug_toolbar.panels.settings.SettingsPanel', 'debug_toolbar.panels.headers.HeadersPanel', 'debug_toolbar.panels.request.RequestPanel', 'debug_toolbar.panels.sql.SQLPanel', 'debug_toolbar.panels.staticfiles.StaticFilesPanel', 'debug_toolbar.panels.templates.TemplatesPanel', 'debug_toolbar.panels.cache.CachePanel', 'debug_toolbar.panels.signals.SignalsPanel', 'debug_toolbar.panels.logging.LoggingPanel', 'debug_toolbar.panels.redirects.RedirectsPanel', 'haystack_panel.panel.HaystackDebugPanel') |
AWS_REGION | 'us-east-1' |
SECURE_BROWSER_XSS_FILTER | False |
THUMBNAIL_PROCESSORS | ('image_cropping.thumbnail_processors.crop_corners', 'easy_thumbnails.processors.colorspace', 'easy_thumbnails.processors.autocrop', 'easy_thumbnails.processors.scale_and_crop', 'easy_thumbnails.processors.filters', 'easy_thumbnails.processors.background') |
USE_THOUSAND_SEPARATOR | False |
ACCOUNT_AUTHENTICATION_METHOD | 'username_email' |
CSRF_COOKIE_SECURE | True |
LANGUAGE_CODE | 'en-us' |
ROOT_URLCONF | 'citizine.urls' |
MANAGERS | () |
AWS_HEADERS | {'Cache-Control': 'max-age=94608000', 'Expires': 'Thu, 31 Dec 2099 20:00:00 GMT'} |
SILENCED_SYSTEM_CHECKS | [] |
DEFAULT_CHARSET | 'utf-8' |
MEDIAFILES_LOCATION | '' |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
STATIC_ROOT | '/tmp/static.citizine.tv/' |
CKEDITOR_UPLOAD_PATH | 'uploads/' |
GLOBAL_DEBUG | True |
ALLOWED_HOSTS | ['*'] |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
SERVER_EMAIL | 'accounts@citizine.tv' |
SECURE_HSTS_SECONDS | 0 |
STATICFILES_FINDERS | ('django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder') |
USE_LOCKDOWN | False |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_NAME | 'sessionid' |
THUMBNAIL_ALIASES | {'': {'category_image': {'size': (400, 400)}, 'city_image': {'size': (400, 400)}, 'featured_image': {'size': (1280, 600)}, 'image': {'size': (600, 400)}, 'thumb_image': {'size': (60, 40)}}} |
TIME_INPUT_FORMATS | ('%H:%M:%S', '%H:%M:%S.%f', '%H:%M') |
SECURE_REDIRECT_EXEMPT | [] |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.contrib.gis.db.backends.postgis', 'HOST': 'db.citizine.tv', 'NAME': 'citizinedb', 'OPTIONS': {}, 'PASSWORD': u'********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': 'UTC', 'USER': 'citizine'}} |
EMAIL_SSL_KEYFILE | u'********************' |
TEMPLATE_DEBUG | False |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
GA_TRACKING_CODE | 'UA-55134534-1' |
THUMBNAIL_DEBUG | True |
FILE_UPLOAD_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ('django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler') |
DEFAULT_CONTENT_TYPE | 'text/html' |
SOCIALACCOUNT_PROVIDERS | {'facebook': {'AUTH_PARAMS': {'auth_type': 'reauthenticate'}, 'METHOD': 'oauth2', 'SCOPE': ['public_profile', 'email'], 'VERIFIED_EMAIL': False, 'VERSION': 'v2.3'}} |
STATICFILES_LOCATION | '' |
ACCOUNT_EMAIL_VERIFICATION | 'optional' |
APPEND_SLASH | True |
FIRST_DAY_OF_WEEK | 0 |
DATABASE_ROUTERS | [] |
DEFAULT_TABLESPACE | '' |
YEAR_MONTH_FORMAT | 'F Y' |
STATICFILES_STORAGE | 'custom_storages.StaticStorage' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': 'cache.citizine.tv:11211'}} |
EMAIL_TIMEOUT | None |
SESSION_COOKIE_PATH | '/' |
MESSAGE_TAGS | {10: 'debug', 20: 'info', 25: 'success', 30: 'warning', 40: 'danger'} |
AWS_S3_BUCKET_NAME_STATIC | 'static.citizine.tv' |
SECURE_CONTENT_TYPE_NOSNIFF | False |
IMAGE_CROPPING_JQUERY_URL | 'grappelli/jquery/jquery-2.1.4.min.js' |
MIDDLEWARE_CLASSES | ('django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'debug_toolbar.middleware.DebugToolbarMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.middleware.security.SecurityMiddleware', 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware') |
USE_I18N | True |
THOUSAND_SEPARATOR | ',' |
SECRET_KEY | u'********************' |
AWS_S3_BUCKET_NAME_MEDIA | 'media.citizine.tv' |
AWS_S3_MAX_AGE_SECONDS_STATIC | 31536000 |
DEFAULT_INDEX_TABLESPACE | '' |
JQUERY_URL | 'grappelli/jquery/jquery-2.1.4.min.js' |
CKEDITOR_JQUERY_URL | 'grappelli/jquery/jquery-2.1.4.min.js' |
AWS_S3_BUCKET_AUTH | False |
TEMPLATE_LOADERS | ('django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader') |
CKEDITOR_IMAGE_BACKEND | 'pillow' |
WSGI_APPLICATION | 'citizine.wsgi.application' |
SOLO_CACHE | 'default' |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
CSRF_COOKIE_NAME | 'csrftoken' |
HAYSTACK_CONNECTIONS | {'default': {'ENGINE': 'haystack.backends.solr_backend.SolrEngine', 'URL': 'http://54.86.149.97:8983/solr'}} |
OPENTABLE | {'referral_id': '78424'} |
FORCE_SCRIPT_NAME | None |
USE_X_FORWARDED_HOST | False |
AWS_SES_REGION_NAME | 'us-east-1' |
SECURE_SSL_HOST | None |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SESSION_COOKIE_SECURE | True |
BASE_URL | '' |
CSRF_COOKIE_DOMAIN | None |
FILE_CHARSET | 'utf-8' |
DEBUG | True |
INTERNAL_IPS | (u'::1', u'127.0.0.1') |
AWS_ACCESS_KEY_ID | u'********************' |
DEFAULT_FILE_STORAGE | 'custom_storages.MediaStorage' |
INSTALLED_APPS | ['grappelli', 'django.contrib.admin', 'polymorphic', 'django.contrib.contenttypes', 'django.contrib.auth', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.humanize', 'django.contrib.flatpages', 'django.contrib.gis', 'solo', 'publisher', 'easy_thumbnails', 'image_cropping', 'envelope', 'crispy_forms', 'allauth', 'allauth.account', 'allauth.socialaccount', 'allauth.socialaccount.providers.twitter', 'allauth.socialaccount.providers.facebook', 'haystack', 'ckeditor', 'bootstrapform', 'debug_toolbar', 'haystack_panel', 'citizine', 'storages', 'django_ses'] |
LANGUAGES_BIDI | ('he', 'ar', 'fa', 'ur') |
USE_L10N | True |
THUMBNAIL_DEFAULT_STORAGE | 'custom_storages.MediaStorage' |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
STATICFILES_DIRS | () |
PREPEND_WWW | False |
SECURE_PROXY_SSL_HEADER | ('HTTP_X_FORWARDED_PROTO', 'https') |
GRAPPELLI_ADMIN_TITLE | 'Citizine' |
GA_PROPERTY_ID | 'UA-55134534-1' |
LANGUAGE_COOKIE_AGE | None |
SESSION_COOKIE_HTTPONLY | True |
AWS_SECRET_ACCESS_KEY | u'********************' |
SOCIALACCOUNT_FORMS | {'signup': 'citizine.forms.SocialSignupForm'} |
DEBUG_PROPAGATE_EXCEPTIONS | False |
ACCOUNT_USERNAME_REQUIRED | True |
STATIC_VERSION_NUMBER | '2.7' |
MONTH_DAY_FORMAT | 'F j' |
AWS_QUERYSTRING_AUTH | False |
LOGIN_URL | '/accounts/login/' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
PASSWORD_RESET_TIMEOUT_DAYS | u'********************' |
TIME_FORMAT | 'P' |
AWS_S3_MAX_AGE_SECONDS | 31536000 |
AUTH_USER_MODEL | 'auth.User' |
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') |
ACCOUNT_LOGOUT_REDIRECT_URL | '/' |
BOOKING_REFERENCE_TYPES | {'amexdining': 8, 'amexsignature': 7, 'amextravel': 6, 'opentable': 1, 'opentableuk': 4} |
AUTHENTICATION_BACKENDS | ('django.contrib.auth.backends.ModelBackend', 'allauth.account.auth_backends.AuthenticationBackend') |
EMAIL_HOST_PASSWORD | u'********************' |
AWS_SES_REGION_ENDPOINT | 'email.us-east-1.amazonaws.com' |
AUTH_PROFILE_MODULE | 'citizine.Profile' |
LANGUAGE_COOKIE_DOMAIN | None |
CACHE_MIDDLEWARE_ALIAS | 'default' |
SESSION_SAVE_EVERY_REQUEST | False |
NUMBER_GROUPING | 0 |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SESSION_ENGINE | 'django.contrib.sessions.backends.cached_db' |
AWS_S3_BUCKET_AUTH_STATIC | False |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_COOKIE_PATH | '/' |
ENVELOPE_EMAIL_RECIPIENTS | 'sam@josephmark.com.au' |
LOGIN_REDIRECT_URL | '/' |
SOCIALACCOUNT_EMAIL_REQUIRED | True |
ACCOUNT_LOGOUT_ON_GET | True |
DECIMAL_SEPARATOR | '.' |
CACHE_MIDDLEWARE_KEY_PREFIX | u'********************' |
ACCOUNT_FORMS | {'login': 'citizine.forms.LoginForm', 'reset_password': 'citizine.forms.ResetPasswordForm', 'signup': 'citizine.forms.SignupForm'} |
LOCALE_PATHS | () |
TEMPLATE_STRING_IF_INVALID | '' |
SESSION_FILE_PATH | None |
LOGOUT_URL | '/accounts/logout/' |
EMAIL_USE_TLS | False |
TEMPLATE_DIRS | () |
FIXTURE_DIRS | () |
EMAIL_HOST | 'localhost' |
HAYSTACK_ENABLED | True |
DATE_FORMAT | 'N j, Y' |
MEDIA_ROOT | '/tmp/media.citizine.tv/' |
AWS_S3_CALLING_FORMAT_STATIC | 'boto.s3.connection.OrdinaryCallingFormat' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
ADMINS | () |
FORMAT_MODULE_PATH | None |
DEFAULT_FROM_EMAIL | 'accounts@citizine.tv' |
BASE_DIR | '/opt/python/current/app/citizine' |
MEDIA_URL | '//s3.amazonaws.com/media.citizine.tv/' |
DATETIME_FORMAT | 'N j, Y, P' |
AWS_S3_CALLING_FORMAT | 'boto.s3.connection.OrdinaryCallingFormat' |
CKEDITOR_CONFIGS | {'default': {'contentsCss': ['//s3.amazonaws.com/static.citizine.tv/ckeditor.css'], 'extraAllowedContent': 'span(*)[*];p a div h2 h3 h4 h5 h6 section article iframe object embed strong b i em cite pre blockquote small,sub sup code ul ol li dl dt dd table thead tbody th tr td img caption mediawrapper br[href,src,target,width,height,colspan,span,alt,name,title,class,id,data-options,data-slug]{text-align,float,margin}(*);', 'extraPlugins': 'poi,widget,widgetbootstrap,simpleuploads,imagecrop', 'height': 600, 'imagecrop': {'cropsizes': [{'height': 400, 'name': 'Destination Image', 'title': '400px square', 'width': 400}, {'height': 600, 'name': 'Featured Image', 'title': '1280 * 600', 'width': 1280}, {'height': 400, 'name': 'Article/Video Image', 'title': '600 * 400', 'width': 600}, {'height': 320, 'name': 'Article Content Small Image', 'title': '3/2 ratio', 'width': 480}, {'height': 0, 'name': 'Article Content Large Image', 'title': 'Aim for 960 wide', 'width': 0}, {'height': 0, 'name': 'Free crop', 'title': 'No restrictions', 'width': 0}], 'maximumDimensions': {'height': 1280, 'width': 1280}}, 'resize_enabled': 'true', 'toolbar': [['Source', '-', 'NewPage'], ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', 'RemoveFormat', '-', 'Undo', 'Redo'], ['NumberedList', 'BulletedList', 'Blockquote', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'], ['Link', 'Unlink', 'Anchor'], ['Bold', 'Italic', 'Underline'], ['WidgetbootstrapRowCol', 'WidgetbootstrapTwoCol', 'addImage'], ['POI'], ['Maximize', 'ShowBlocks'], ['Styles', 'Format']], 'width': 600}} |
ADMIN_PANEL | True |
SITE_ID | 1 |
DISALLOWED_USER_AGENTS | () |
ALLOWED_INCLUDE_ROOTS | () |
LOGGING | {'disable_existing_loggers': True, 'handlers': {'stderr': {'class': 'logging.StreamHandler', 'level': 'INFO', 'stream': <mod_wsgi.Log object at 0x7fcb17407330>}}, 'loggers': {'application': {'handlers': ['stderr'], 'level': 'INFO'}}, 'version': 1} |
SHORT_DATE_FORMAT | 'm/d/Y' |
TEMPLATES | [{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/opt/python/current/app/citizine/templates/allauth', '/opt/python/current/app/citizine/templates/publisher'], 'OPTIONS': {'context_processors': ['django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'citizine.context_processors.search_destinations', 'citizine.context_processors.footer_destinations', 'citizine.context_processors.coming_soon_destinations', 'citizine.context_processors.search_links', 'citizine.context_processors.social_links', 'citizine.context_processors.highlight_poi', 'citizine.context_processors.is_auth_page', 'citizine.context_processors.categories', 'citizine.context_processors.contact_details'], 'debug': True, 'loaders': [('django.template.loaders.cached.Loader', ['django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader'])]}}] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
IGNORABLE_404_URLS | () |
SECURE_SSL_REDIRECT | True |
TIME_ZONE | 'America/Los_Angeles' |
IMAGE_CROPPING_THUMB_SIZE | (300, 300) |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
EMAIL_BACKEND | 'django_ses.SESBackend' |
LANGUAGE_COOKIE_NAME | 'django_language' |
EMAIL_USE_SSL | False |
TEMPLATE_CONTEXT_PROCESSORS | ('django.contrib.auth.context_processors.auth', 'django.template.context_processors.debug', 'django.template.context_processors.i18n', 'django.template.context_processors.media', 'django.template.context_processors.static', 'django.template.context_processors.tz', 'django.contrib.messages.context_processors.messages') |
MIGRATION_MODULES | {} |
SESSION_COOKIE_AGE | 1209600 |
SETTINGS_MODULE | 'citizine.settings.production-admin' |
USE_ETAGS | False |
LANGUAGES | (('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmal'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('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'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese'), ('zh-tw', 'Traditional Chinese')) |
FILE_UPLOAD_TEMP_DIR | None |
CSRF_COOKIE_AGE | 31449600 |
STATIC_URL | '//s3.amazonaws.com/static.citizine.tv/' |
EMAIL_PORT | 25 |
USE_TZ | True |
CACHE_PREFIX | 'prod-' |
GA_DOMAIN | 'www.citizine.tv' |
TEST_NON_SERIALIZED_APPS | [] |
PASSWORD_HASHERS | u'********************' |
ABSOLUTE_URL_OVERRIDES | {} |
LANGUAGE_COOKIE_PATH | '/' |
CACHE_MIDDLEWARE_SECONDS | 600 |
EMAIL_SSL_CERTFILE | None |
PAGING | {'num_per_page': 13} |
CSRF_COOKIE_HTTPONLY | False |
DATETIME_INPUT_FORMATS | ('%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y') |
LOGGING_CONFIG | 'logging.config.dictConfig' |
EMAIL_HOST_USER | '' |
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 page generated by the handler for this status code.