module 'xml.etree.ElementTree' has no attribute '_IterParseIterator'
Request Method: | GET |
---|---|
Request URL: | http://totetiroler.acdh.oeaw.ac.at/social-auth/login/google-oauth2/ |
Django Version: | 1.9.5 |
Exception Type: | AttributeError |
Exception Value: | module 'xml.etree.ElementTree' has no attribute '_IterParseIterator' |
Exception Location: | /var/www/html/myenv/lib/python3.6/site-packages/defusedxml/ElementTree.py in _get_py3_cls, line 56 |
Python Executable: | /usr/bin/python3 |
Python Version: | 3.6.9 |
Python Path: | ['/var/www/html', '/usr/lib/python36.zip', '/usr/lib/python3.6', '/usr/lib/python3.6/lib-dynload', '/usr/local/lib/python3.6/dist-packages', '/usr/lib/python3/dist-packages', '/var/www/html', '/var/www/html/myenv/lib/python3.6/site-packages'] |
Server time: | Thu, 28 Mar 2024 19:33:06 +0000 |
/var/www/html/myenv/lib/python3.6/site-packages/social/backends/utils.py
in get_backend
cache dict. If not found, each of the modules referenced in
AUTHENTICATION_BACKENDS is imported and checked for a BACKENDS
definition. If the named backend is found in the module's BACKENDS
definition, it's then stored in the cache for future access.
"""
try:
# Cached backend which has previously been discovered
return BACKENDSCACHE[name]...
except KeyError:
# Reload BACKENDS to ensure a missing backend hasn't been missed
load_backends(backends, force_load=True)
try:
return BACKENDSCACHE[name]
except KeyError:
Variable | Value |
---|---|
name | 'google-oauth2' |
backends | ('django.contrib.auth.backends.ModelBackend', 'social.backends.facebook.Facebook2OAuth2', 'social.backends.google.GoogleOAuth2') |
/var/www/html/myenv/lib/python3.6/site-packages/django/core/handlers/base.py
in get_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:
response = self.process_exception_by_middleware(e, request)...
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
view_name = callback.__name__
else: # CBV
Variable | Value |
---|---|
wrapped_callback | <function auth at 0x7faad191ea60> |
callback_kwargs | {'backend': 'google-oauth2'} |
callback_args | () |
callback | <function auth at 0x7faad191ea60> |
resolver_match | ResolverMatch(func=social.apps.django_app.views.auth, args=(), kwargs={'backend': 'google-oauth2'}, url_name=begin, app_names=[], namespaces=['social']) |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7faad21854a8>> |
response | None |
response_is_rendered | False |
resolver | <RegexURLResolver 'totetiroler.urls' (None:None) ^/> |
urlconf | 'totetiroler.urls' |
request | <WSGIRequest: GET '/social-auth/login/google-oauth2/'> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7faae2f48f28> |
/var/www/html/myenv/lib/python3.6/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:
response = self.process_exception_by_middleware(e, request)
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
Variable | Value |
---|---|
wrapped_callback | <function auth at 0x7faad191ea60> |
callback_kwargs | {'backend': 'google-oauth2'} |
callback_args | () |
callback | <function auth at 0x7faad191ea60> |
resolver_match | ResolverMatch(func=social.apps.django_app.views.auth, args=(), kwargs={'backend': 'google-oauth2'}, url_name=begin, app_names=[], namespaces=['social']) |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7faad21854a8>> |
response | None |
response_is_rendered | False |
resolver | <RegexURLResolver 'totetiroler.urls' (None:None) ^/> |
urlconf | 'totetiroler.urls' |
request | <WSGIRequest: GET '/social-auth/login/google-oauth2/'> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7faae2f48f28> |
/var/www/html/myenv/lib/python3.6/site-packages/django/views/decorators/cache.py
in _wrapped_view_func
def never_cache(view_func):
"""
Decorator that adds headers to a response so that it will
never be cached.
"""
@wraps(view_func, assigned=available_attrs(view_func))
def _wrapped_view_func(request, *args, **kwargs):
response = view_func(request, *args, **kwargs)...
add_never_cache_headers(response)
return response
return _wrapped_view_func
Variable | Value |
---|---|
kwargs | {'backend': 'google-oauth2'} |
args | () |
request | <WSGIRequest: GET '/social-auth/login/google-oauth2/'> |
view_func | <function auth at 0x7faad18b72f0> |
/var/www/html/myenv/lib/python3.6/site-packages/social/apps/django_app/utils.py
in wrapper
# backward compatibility in attribute name, only if not already
# defined
if not hasattr(request, 'strategy'):
request.strategy = request.social_strategy
try:
request.backend = load_backend(request.social_strategy,
backend, uri)...
except MissingBackend:
raise Http404('Backend not found')
return func(request, backend, *args, **kwargs)
return wrapper
return decorator
Variable | Value |
---|---|
uri | '/social-auth/complete/google-oauth2/' |
kwargs | {} |
args | () |
backend | 'google-oauth2' |
request | <WSGIRequest: GET '/social-auth/login/google-oauth2/'> |
redirect_uri | 'social:complete' |
load_strategy | <function load_strategy at 0x7faad8a161e0> |
func | <function auth at 0x7faad18b7268> |
/var/www/html/myenv/lib/python3.6/site-packages/social/apps/django_app/utils.py
in load_backend
def load_strategy(request=None):
return get_strategy(STRATEGY, STORAGE, request)
def load_backend(strategy, name, redirect_uri):
Backend = get_backend(BACKENDS, name)...
return Backend(strategy, redirect_uri)
def psa(redirect_uri=None, load_strategy=load_strategy):
def decorator(func):
@wraps(func)
Variable | Value |
---|---|
redirect_uri | '/social-auth/complete/google-oauth2/' |
name | 'google-oauth2' |
strategy | <social.strategies.django_strategy.DjangoStrategy object at 0x7faad07c5780> |
/var/www/html/myenv/lib/python3.6/site-packages/social/backends/utils.py
in get_backend
definition, it's then stored in the cache for future access.
"""
try:
# Cached backend which has previously been discovered
return BACKENDSCACHE[name]
except KeyError:
# Reload BACKENDS to ensure a missing backend hasn't been missed
load_backends(backends, force_load=True)...
try:
return BACKENDSCACHE[name]
except KeyError:
raise MissingBackend(name)
Variable | Value |
---|---|
name | 'google-oauth2' |
backends | ('django.contrib.auth.backends.ModelBackend', 'social.backends.facebook.Facebook2OAuth2', 'social.backends.google.GoogleOAuth2') |
/var/www/html/myenv/lib/python3.6/site-packages/social/backends/utils.py
in load_backends
below can retry a requested backend that may not yet be discovered.
"""
global BACKENDSCACHE
if force_load:
BACKENDSCACHE = {}
if not BACKENDSCACHE:
for auth_backend in backends:
backend = module_member(auth_backend)...
if issubclass(backend, BaseAuth):
BACKENDSCACHE[backend.name] = backend
return BACKENDSCACHE
def get_backend(backends, name):
Variable | Value |
---|---|
backend | <class 'social.backends.facebook.Facebook2OAuth2'> |
auth_backend | 'social.backends.google.GoogleOAuth2' |
force_load | True |
backends | ('django.contrib.auth.backends.ModelBackend', 'social.backends.facebook.Facebook2OAuth2', 'social.backends.google.GoogleOAuth2') |
/var/www/html/myenv/lib/python3.6/site-packages/social/utils.py
in module_member
def import_module(name):
__import__(name)
return sys.modules[name]
def module_member(name):
mod, member = name.rsplit('.', 1)
module = import_module(mod)...
return getattr(module, member)
def user_agent():
"""Builds a simple User-Agent string to send in requests"""
return 'python-social-auth-' + social.__version__
Variable | Value |
---|---|
member | 'GoogleOAuth2' |
mod | 'social.backends.google' |
name | 'social.backends.google.GoogleOAuth2' |
/var/www/html/myenv/lib/python3.6/site-packages/social/utils.py
in import_module
def ssl_adapter_session(cls, ssl_protocol):
session = requests.Session()
session.mount('https://', SSLHttpAdapter(ssl_protocol))
return session
def import_module(name):
__import__(name)...
return sys.modules[name]
def module_member(name):
mod, member = name.rsplit('.', 1)
module = import_module(mod)
Variable | Value |
---|---|
name | 'social.backends.google' |
/var/www/html/myenv/lib/python3.6/site-packages/social/backends/google.py
in <module>
"""
Google OpenId, OAuth2, OAuth1, Google+ Sign-in backends, docs at:
http://psa.matiasaguirre.net/docs/backends/google.html
"""
from social.utils import handle_http_errors
from social.backends.open_id import OpenIdAuth, OpenIdConnectAuth...
from social.backends.oauth import BaseOAuth2, BaseOAuth1
from social.exceptions import AuthMissingParameter
class BaseGoogleAuth(object):
def get_user_id(self, details, response):
Variable | Value |
---|---|
__name__ | 'social.backends.google' |
__doc__ | ('\n' 'Google OpenId, OAuth2, OAuth1, Google+ Sign-in backends, docs at:\n' ' http://psa.matiasaguirre.net/docs/backends/google.html\n') |
__package__ | 'social.backends' |
__loader__ | <_frozen_importlib_external.SourceFileLoader object at 0x7faad121dda0> |
__spec__ | ModuleSpec(name='social.backends.google', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7faad121dda0>, origin='/var/www/html/myenv/lib/python3.6/site-packages/social/backends/google.py') |
__file__ | '/var/www/html/myenv/lib/python3.6/site-packages/social/backends/google.py' |
__cached__ | '/var/www/html/myenv/lib/python3.6/site-packages/social/backends/__pycache__/google.cpython-36.pyc' |
__builtins__ | {'ArithmeticError': <class 'ArithmeticError'>, 'AssertionError': <class 'AssertionError'>, 'AttributeError': <class 'AttributeError'>, 'BaseException': <class 'BaseException'>, 'BlockingIOError': <class 'BlockingIOError'>, 'BrokenPipeError': <class 'BrokenPipeError'>, 'BufferError': <class 'BufferError'>, 'BytesWarning': <class 'BytesWarning'>, 'ChildProcessError': <class 'ChildProcessError'>, 'ConnectionAbortedError': <class 'ConnectionAbortedError'>, 'ConnectionError': <class 'ConnectionError'>, 'ConnectionRefusedError': <class 'ConnectionRefusedError'>, 'ConnectionResetError': <class 'ConnectionResetError'>, 'DeprecationWarning': <class 'DeprecationWarning'>, 'EOFError': <class 'EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <class 'OSError'>, 'Exception': <class 'Exception'>, 'False': False, 'FileExistsError': <class 'FileExistsError'>, 'FileNotFoundError': <class 'FileNotFoundError'>, 'FloatingPointError': <class 'FloatingPointError'>, 'FutureWarning': <class 'FutureWarning'>, 'GeneratorExit': <class 'GeneratorExit'>, 'IOError': <class 'OSError'>, 'ImportError': <class 'ImportError'>, 'ImportWarning': <class 'ImportWarning'>, 'IndentationError': <class 'IndentationError'>, 'IndexError': <class 'IndexError'>, 'InterruptedError': <class 'InterruptedError'>, 'IsADirectoryError': <class 'IsADirectoryError'>, 'KeyError': <class 'KeyError'>, 'KeyboardInterrupt': <class 'KeyboardInterrupt'>, 'LookupError': <class 'LookupError'>, 'MemoryError': <class 'MemoryError'>, 'ModuleNotFoundError': <class 'ModuleNotFoundError'>, 'NameError': <class 'NameError'>, 'None': None, 'NotADirectoryError': <class 'NotADirectoryError'>, 'NotImplemented': NotImplemented, 'NotImplementedError': <class 'NotImplementedError'>, 'OSError': <class 'OSError'>, 'OverflowError': <class 'OverflowError'>, 'PendingDeprecationWarning': <class 'PendingDeprecationWarning'>, 'PermissionError': <class 'PermissionError'>, 'ProcessLookupError': <class 'ProcessLookupError'>, 'RecursionError': <class 'RecursionError'>, 'ReferenceError': <class 'ReferenceError'>, 'ResourceWarning': <class 'ResourceWarning'>, 'RuntimeError': <class 'RuntimeError'>, 'RuntimeWarning': <class 'RuntimeWarning'>, 'StopAsyncIteration': <class 'StopAsyncIteration'>, 'StopIteration': <class 'StopIteration'>, 'SyntaxError': <class 'SyntaxError'>, 'SyntaxWarning': <class 'SyntaxWarning'>, 'SystemError': <class 'SystemError'>, 'SystemExit': <class 'SystemExit'>, 'TabError': <class 'TabError'>, 'TimeoutError': <class 'TimeoutError'>, 'True': True, 'TypeError': <class 'TypeError'>, 'UnboundLocalError': <class 'UnboundLocalError'>, 'UnicodeDecodeError': <class 'UnicodeDecodeError'>, 'UnicodeEncodeError': <class 'UnicodeEncodeError'>, 'UnicodeError': <class 'UnicodeError'>, 'UnicodeTranslateError': <class 'UnicodeTranslateError'>, 'UnicodeWarning': <class 'UnicodeWarning'>, 'UserWarning': <class 'UserWarning'>, 'ValueError': <class 'ValueError'>, 'Warning': <class 'Warning'>, 'ZeroDivisionError': <class 'ZeroDivisionError'>, '__build_class__': <built-in function __build_class__>, '__debug__': True, '__doc__': 'Built-in functions, exceptions, and other objects.\n' '\n' "Noteworthy: None is the `nil' object; Ellipsis represents `...' " 'in slices.', '__import__': <built-in function __import__>, '__loader__': <class '_frozen_importlib.BuiltinImporter'>, '__name__': 'builtins', '__package__': '', '__spec__': ModuleSpec(name='builtins', loader=<class '_frozen_importlib.BuiltinImporter'>), 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'ascii': <built-in function ascii>, 'bin': <built-in function bin>, 'bool': <class 'bool'>, 'bytearray': <class 'bytearray'>, 'bytes': <class 'bytes'>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'classmethod': <class 'classmethod'>, 'compile': <built-in function compile>, 'complex': <class 'complex'>, 'copyright': Copyright (c) 2001-2019 Python Software Foundat... <trimmed 6540 bytes string> |
handle_http_errors | <function handle_http_errors at 0x7faad28ae8c8> |
/var/www/html/myenv/lib/python3.6/site-packages/social/backends/open_id.py
in <module>
import datetime
from calendar import timegm
from jwt import InvalidTokenError, decode as jwt_decode
from openid.consumer.consumer import Consumer, SUCCESS, CANCEL, FAILURE...
from openid.consumer.discover import DiscoveryFailure
from openid.extensions import sreg, ax, pape
from social.utils import url_add_parameters
from social.backends.base import BaseAuth
from social.backends.oauth import BaseOAuth2
Variable | Value |
---|---|
__name__ | 'social.backends.open_id' |
__doc__ | None |
__package__ | 'social.backends' |
__loader__ | <_frozen_importlib_external.SourceFileLoader object at 0x7faad121dc88> |
__spec__ | ModuleSpec(name='social.backends.open_id', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7faad121dc88>, origin='/var/www/html/myenv/lib/python3.6/site-packages/social/backends/open_id.py') |
__file__ | '/var/www/html/myenv/lib/python3.6/site-packages/social/backends/open_id.py' |
__cached__ | '/var/www/html/myenv/lib/python3.6/site-packages/social/backends/__pycache__/open_id.cpython-36.pyc' |
__builtins__ | {'ArithmeticError': <class 'ArithmeticError'>, 'AssertionError': <class 'AssertionError'>, 'AttributeError': <class 'AttributeError'>, 'BaseException': <class 'BaseException'>, 'BlockingIOError': <class 'BlockingIOError'>, 'BrokenPipeError': <class 'BrokenPipeError'>, 'BufferError': <class 'BufferError'>, 'BytesWarning': <class 'BytesWarning'>, 'ChildProcessError': <class 'ChildProcessError'>, 'ConnectionAbortedError': <class 'ConnectionAbortedError'>, 'ConnectionError': <class 'ConnectionError'>, 'ConnectionRefusedError': <class 'ConnectionRefusedError'>, 'ConnectionResetError': <class 'ConnectionResetError'>, 'DeprecationWarning': <class 'DeprecationWarning'>, 'EOFError': <class 'EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <class 'OSError'>, 'Exception': <class 'Exception'>, 'False': False, 'FileExistsError': <class 'FileExistsError'>, 'FileNotFoundError': <class 'FileNotFoundError'>, 'FloatingPointError': <class 'FloatingPointError'>, 'FutureWarning': <class 'FutureWarning'>, 'GeneratorExit': <class 'GeneratorExit'>, 'IOError': <class 'OSError'>, 'ImportError': <class 'ImportError'>, 'ImportWarning': <class 'ImportWarning'>, 'IndentationError': <class 'IndentationError'>, 'IndexError': <class 'IndexError'>, 'InterruptedError': <class 'InterruptedError'>, 'IsADirectoryError': <class 'IsADirectoryError'>, 'KeyError': <class 'KeyError'>, 'KeyboardInterrupt': <class 'KeyboardInterrupt'>, 'LookupError': <class 'LookupError'>, 'MemoryError': <class 'MemoryError'>, 'ModuleNotFoundError': <class 'ModuleNotFoundError'>, 'NameError': <class 'NameError'>, 'None': None, 'NotADirectoryError': <class 'NotADirectoryError'>, 'NotImplemented': NotImplemented, 'NotImplementedError': <class 'NotImplementedError'>, 'OSError': <class 'OSError'>, 'OverflowError': <class 'OverflowError'>, 'PendingDeprecationWarning': <class 'PendingDeprecationWarning'>, 'PermissionError': <class 'PermissionError'>, 'ProcessLookupError': <class 'ProcessLookupError'>, 'RecursionError': <class 'RecursionError'>, 'ReferenceError': <class 'ReferenceError'>, 'ResourceWarning': <class 'ResourceWarning'>, 'RuntimeError': <class 'RuntimeError'>, 'RuntimeWarning': <class 'RuntimeWarning'>, 'StopAsyncIteration': <class 'StopAsyncIteration'>, 'StopIteration': <class 'StopIteration'>, 'SyntaxError': <class 'SyntaxError'>, 'SyntaxWarning': <class 'SyntaxWarning'>, 'SystemError': <class 'SystemError'>, 'SystemExit': <class 'SystemExit'>, 'TabError': <class 'TabError'>, 'TimeoutError': <class 'TimeoutError'>, 'True': True, 'TypeError': <class 'TypeError'>, 'UnboundLocalError': <class 'UnboundLocalError'>, 'UnicodeDecodeError': <class 'UnicodeDecodeError'>, 'UnicodeEncodeError': <class 'UnicodeEncodeError'>, 'UnicodeError': <class 'UnicodeError'>, 'UnicodeTranslateError': <class 'UnicodeTranslateError'>, 'UnicodeWarning': <class 'UnicodeWarning'>, 'UserWarning': <class 'UserWarning'>, 'ValueError': <class 'ValueError'>, 'Warning': <class 'Warning'>, 'ZeroDivisionError': <class 'ZeroDivisionError'>, '__build_class__': <built-in function __build_class__>, '__debug__': True, '__doc__': 'Built-in functions, exceptions, and other objects.\n' '\n' "Noteworthy: None is the `nil' object; Ellipsis represents `...' " 'in slices.', '__import__': <built-in function __import__>, '__loader__': <class '_frozen_importlib.BuiltinImporter'>, '__name__': 'builtins', '__package__': '', '__spec__': ModuleSpec(name='builtins', loader=<class '_frozen_importlib.BuiltinImporter'>), 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'ascii': <built-in function ascii>, 'bin': <built-in function bin>, 'bool': <class 'bool'>, 'bytearray': <class 'bytearray'>, 'bytes': <class 'bytes'>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'classmethod': <class 'classmethod'>, 'compile': <built-in function compile>, 'complex': <class 'complex'>, 'copyright': Copyright (c) 2001-2019 Python Software Foundat... <trimmed 6540 bytes string> |
datetime | <module 'datetime' from '/usr/lib/python3.6/datetime.py'> |
timegm | <function timegm at 0x7faad9dbf510> |
InvalidTokenError | <class 'jwt.exceptions.InvalidTokenError'> |
jwt_decode | <bound method PyJWT.decode of <jwt.api_jwt.PyJWT object at 0x7faad11edc88>> |
/var/www/html/myenv/lib/python3.6/site-packages/openid/consumer/consumer.py
in <module>
import copy
import logging
from urllib.parse import urlparse, urldefrag, parse_qsl
from openid import fetchers
from openid.consumer.discover import discover, OpenIDServiceEndpoint, \...
DiscoveryFailure, OPENID_1_0_TYPE, OPENID_1_1_TYPE, OPENID_2_0_TYPE
from openid.message import Message, OPENID_NS, OPENID2_NS, OPENID1_NS, \
IDENTIFIER_SELECT, no_default, BARE_NS
from openid import cryptutil
from openid import oidutil
from openid.association import Association, default_negotiator, \
Variable | Value |
---|---|
__name__ | 'openid.consumer.consumer' |
__doc__ | ('OpenID support for Relying Parties (aka Consumers).\n' '\n' 'This module documents the main interface with the OpenID consumer\n' "library. The only part of the library which has to be used and isn't\n" 'documented in full here is the store required to create an\n' 'C{L{Consumer}} instance. More on the abstract store type and\n' 'concrete implementations of it that are provided in the documentation\n' 'for the C{L{__init__<Consumer.__init__>}} method of the\n' 'C{L{Consumer}} class.\n' '\n' '\n' 'OVERVIEW\n' '========\n' '\n' ' The OpenID identity verification process most commonly uses the\n' ' following steps, as visible to the user of this library:\n' '\n' " 1. The user enters their OpenID into a field on the consumer's\n" ' site, and hits a login button.\n' '\n' " 2. The consumer site discovers the user's OpenID provider using\n" ' the Yadis protocol.\n' '\n' ' 3. The consumer site sends the browser a redirect to the\n' ' OpenID provider. This is the authentication request as\n' ' described in the OpenID specification.\n' '\n' " 4. The OpenID provider's site sends the browser a redirect\n" ' back to the consumer site. This redirect contains the\n' " provider's response to the authentication request.\n" '\n' " The most important part of the flow to note is the consumer's site\n" ' must handle two separate HTTP requests in order to perform the\n' ' full identity check.\n' '\n' '\n' 'LIBRARY DESIGN\n' '==============\n' '\n' ' This consumer library is designed with that flow in mind. The\n' ' goal is to make it as easy as possible to perform the above steps\n' ' securely.\n' '\n' ' At a high level, there are two important parts in the consumer\n' ' library. The first important part is this module, which contains\n' ' the interface to actually use this library. The second is the\n' ' C{L{openid.store.interface}} module, which describes the\n' ' interface to use if you need to create a custom method for storing\n' ' the state this library needs to maintain between requests.\n' '\n' ' In general, the second part is less important for users of the\n' ' library to know about, as several implementations are provided\n' ' which cover a wide variety of situations in which consumers may\n' ' use the library.\n' '\n' ' This module contains a class, C{L{Consumer}}, with methods\n' ' corresponding to the actions necessary in each of steps 2, 3, and\n' ' 4 described in the overview. Use of this library should be as easy\n' ' as creating an C{L{Consumer}} instance and calling the methods\n' ' appropriate for the action the site wants to take.\n' '\n' '\n' 'SESSIONS, STORES, AND STATELESS MODE\n' '====================================\n' '\n' ' The C{L{Consumer}} object keeps track of two types of state:\n' '\n' " 1. State of the user's current authentication attempt. Things like\n" ' the identity URL, the list of endpoints discovered for that\n' ' URL, and in case where some endpoints are unreachable, the list\n' ' of endpoints already tried. This state needs to be held from\n' ' Consumer.begin() to Consumer.complete(), but it is only ' 'applicable\n' ' to a single session with a single user agent, and at the end of\n' ' the authentication process (i.e. when an OP replies with either\n' ' C{id_res} or C{cancel}) it may be discarded.\n' '\n' ' 2. State of relationships with servers, i.e. shared secrets\n' ' (associations) with servers and nonces seen on signed messages.\n' ' This information should persist from one session to the next and\n' ' should not be bound to a particular user-agent.\n' '\n' '\n' ' These two types of storage are reflected in the first two arguments of\n' " Consumer's constructor, C{session} and C{store}. C{session} is a\n" ' dict-like obj... <trimmed 9330 bytes string> |
__package__ | 'openid.consumer' |
__loader__ | <_frozen_importlib_external.SourceFileLoader object at 0x7faad121d048> |
__spec__ | ModuleSpec(name='openid.consumer.consumer', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7faad121d048>, origin='/var/www/html/myenv/lib/python3.6/site-packages/openid/consumer/consumer.py') |
__file__ | '/var/www/html/myenv/lib/python3.6/site-packages/openid/consumer/consumer.py' |
__cached__ | '/var/www/html/myenv/lib/python3.6/site-packages/openid/consumer/__pycache__/consumer.cpython-36.pyc' |
__builtins__ | {'ArithmeticError': <class 'ArithmeticError'>, 'AssertionError': <class 'AssertionError'>, 'AttributeError': <class 'AttributeError'>, 'BaseException': <class 'BaseException'>, 'BlockingIOError': <class 'BlockingIOError'>, 'BrokenPipeError': <class 'BrokenPipeError'>, 'BufferError': <class 'BufferError'>, 'BytesWarning': <class 'BytesWarning'>, 'ChildProcessError': <class 'ChildProcessError'>, 'ConnectionAbortedError': <class 'ConnectionAbortedError'>, 'ConnectionError': <class 'ConnectionError'>, 'ConnectionRefusedError': <class 'ConnectionRefusedError'>, 'ConnectionResetError': <class 'ConnectionResetError'>, 'DeprecationWarning': <class 'DeprecationWarning'>, 'EOFError': <class 'EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <class 'OSError'>, 'Exception': <class 'Exception'>, 'False': False, 'FileExistsError': <class 'FileExistsError'>, 'FileNotFoundError': <class 'FileNotFoundError'>, 'FloatingPointError': <class 'FloatingPointError'>, 'FutureWarning': <class 'FutureWarning'>, 'GeneratorExit': <class 'GeneratorExit'>, 'IOError': <class 'OSError'>, 'ImportError': <class 'ImportError'>, 'ImportWarning': <class 'ImportWarning'>, 'IndentationError': <class 'IndentationError'>, 'IndexError': <class 'IndexError'>, 'InterruptedError': <class 'InterruptedError'>, 'IsADirectoryError': <class 'IsADirectoryError'>, 'KeyError': <class 'KeyError'>, 'KeyboardInterrupt': <class 'KeyboardInterrupt'>, 'LookupError': <class 'LookupError'>, 'MemoryError': <class 'MemoryError'>, 'ModuleNotFoundError': <class 'ModuleNotFoundError'>, 'NameError': <class 'NameError'>, 'None': None, 'NotADirectoryError': <class 'NotADirectoryError'>, 'NotImplemented': NotImplemented, 'NotImplementedError': <class 'NotImplementedError'>, 'OSError': <class 'OSError'>, 'OverflowError': <class 'OverflowError'>, 'PendingDeprecationWarning': <class 'PendingDeprecationWarning'>, 'PermissionError': <class 'PermissionError'>, 'ProcessLookupError': <class 'ProcessLookupError'>, 'RecursionError': <class 'RecursionError'>, 'ReferenceError': <class 'ReferenceError'>, 'ResourceWarning': <class 'ResourceWarning'>, 'RuntimeError': <class 'RuntimeError'>, 'RuntimeWarning': <class 'RuntimeWarning'>, 'StopAsyncIteration': <class 'StopAsyncIteration'>, 'StopIteration': <class 'StopIteration'>, 'SyntaxError': <class 'SyntaxError'>, 'SyntaxWarning': <class 'SyntaxWarning'>, 'SystemError': <class 'SystemError'>, 'SystemExit': <class 'SystemExit'>, 'TabError': <class 'TabError'>, 'TimeoutError': <class 'TimeoutError'>, 'True': True, 'TypeError': <class 'TypeError'>, 'UnboundLocalError': <class 'UnboundLocalError'>, 'UnicodeDecodeError': <class 'UnicodeDecodeError'>, 'UnicodeEncodeError': <class 'UnicodeEncodeError'>, 'UnicodeError': <class 'UnicodeError'>, 'UnicodeTranslateError': <class 'UnicodeTranslateError'>, 'UnicodeWarning': <class 'UnicodeWarning'>, 'UserWarning': <class 'UserWarning'>, 'ValueError': <class 'ValueError'>, 'Warning': <class 'Warning'>, 'ZeroDivisionError': <class 'ZeroDivisionError'>, '__build_class__': <built-in function __build_class__>, '__debug__': True, '__doc__': 'Built-in functions, exceptions, and other objects.\n' '\n' "Noteworthy: None is the `nil' object; Ellipsis represents `...' " 'in slices.', '__import__': <built-in function __import__>, '__loader__': <class '_frozen_importlib.BuiltinImporter'>, '__name__': 'builtins', '__package__': '', '__spec__': ModuleSpec(name='builtins', loader=<class '_frozen_importlib.BuiltinImporter'>), 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'ascii': <built-in function ascii>, 'bin': <built-in function bin>, 'bool': <class 'bool'>, 'bytearray': <class 'bytearray'>, 'bytes': <class 'bytes'>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'classmethod': <class 'classmethod'>, 'compile': <built-in function compile>, 'complex': <class 'complex'>, 'copyright': Copyright (c) 2001-2019 Python Software Foundat... <trimmed 6540 bytes string> |
copy | <module 'copy' from '/usr/lib/python3.6/copy.py'> |
logging | <module 'logging' from '/usr/lib/python3.6/logging/__init__.py'> |
urlparse | <function urlparse at 0x7faada56a598> |
urldefrag | <function urldefrag at 0x7faada5830d0> |
parse_qsl | <function parse_qsl at 0x7faada5832f0> |
fetchers | <module 'openid.fetchers' from '/var/www/html/myenv/lib/python3.6/site-packages/openid/fetchers.py'> |
/var/www/html/myenv/lib/python3.6/site-packages/openid/consumer/discover.py
in <module>
import urllib.parse
import logging
from openid import fetchers, urinorm
from openid import yadis
from openid.yadis.etxrd import nsTag, XRDSError, XRD_NS_2_0...
from openid.yadis.services import applyFilter as extractServices
from openid.yadis.discover import discover as yadisDiscover
from openid.yadis.discover import DiscoveryFailure
from openid.yadis import xrires, filters
from openid.yadis import xri
Variable | Value |
---|---|
__name__ | 'openid.consumer.discover' |
__doc__ | 'Functions to discover OpenID endpoints from identifiers.\n' |
__package__ | 'openid.consumer' |
__loader__ | <_frozen_importlib_external.SourceFileLoader object at 0x7faad0714fd0> |
__spec__ | ModuleSpec(name='openid.consumer.discover', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7faad0714fd0>, origin='/var/www/html/myenv/lib/python3.6/site-packages/openid/consumer/discover.py') |
__file__ | '/var/www/html/myenv/lib/python3.6/site-packages/openid/consumer/discover.py' |
__cached__ | '/var/www/html/myenv/lib/python3.6/site-packages/openid/consumer/__pycache__/discover.cpython-36.pyc' |
__builtins__ | {'ArithmeticError': <class 'ArithmeticError'>, 'AssertionError': <class 'AssertionError'>, 'AttributeError': <class 'AttributeError'>, 'BaseException': <class 'BaseException'>, 'BlockingIOError': <class 'BlockingIOError'>, 'BrokenPipeError': <class 'BrokenPipeError'>, 'BufferError': <class 'BufferError'>, 'BytesWarning': <class 'BytesWarning'>, 'ChildProcessError': <class 'ChildProcessError'>, 'ConnectionAbortedError': <class 'ConnectionAbortedError'>, 'ConnectionError': <class 'ConnectionError'>, 'ConnectionRefusedError': <class 'ConnectionRefusedError'>, 'ConnectionResetError': <class 'ConnectionResetError'>, 'DeprecationWarning': <class 'DeprecationWarning'>, 'EOFError': <class 'EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <class 'OSError'>, 'Exception': <class 'Exception'>, 'False': False, 'FileExistsError': <class 'FileExistsError'>, 'FileNotFoundError': <class 'FileNotFoundError'>, 'FloatingPointError': <class 'FloatingPointError'>, 'FutureWarning': <class 'FutureWarning'>, 'GeneratorExit': <class 'GeneratorExit'>, 'IOError': <class 'OSError'>, 'ImportError': <class 'ImportError'>, 'ImportWarning': <class 'ImportWarning'>, 'IndentationError': <class 'IndentationError'>, 'IndexError': <class 'IndexError'>, 'InterruptedError': <class 'InterruptedError'>, 'IsADirectoryError': <class 'IsADirectoryError'>, 'KeyError': <class 'KeyError'>, 'KeyboardInterrupt': <class 'KeyboardInterrupt'>, 'LookupError': <class 'LookupError'>, 'MemoryError': <class 'MemoryError'>, 'ModuleNotFoundError': <class 'ModuleNotFoundError'>, 'NameError': <class 'NameError'>, 'None': None, 'NotADirectoryError': <class 'NotADirectoryError'>, 'NotImplemented': NotImplemented, 'NotImplementedError': <class 'NotImplementedError'>, 'OSError': <class 'OSError'>, 'OverflowError': <class 'OverflowError'>, 'PendingDeprecationWarning': <class 'PendingDeprecationWarning'>, 'PermissionError': <class 'PermissionError'>, 'ProcessLookupError': <class 'ProcessLookupError'>, 'RecursionError': <class 'RecursionError'>, 'ReferenceError': <class 'ReferenceError'>, 'ResourceWarning': <class 'ResourceWarning'>, 'RuntimeError': <class 'RuntimeError'>, 'RuntimeWarning': <class 'RuntimeWarning'>, 'StopAsyncIteration': <class 'StopAsyncIteration'>, 'StopIteration': <class 'StopIteration'>, 'SyntaxError': <class 'SyntaxError'>, 'SyntaxWarning': <class 'SyntaxWarning'>, 'SystemError': <class 'SystemError'>, 'SystemExit': <class 'SystemExit'>, 'TabError': <class 'TabError'>, 'TimeoutError': <class 'TimeoutError'>, 'True': True, 'TypeError': <class 'TypeError'>, 'UnboundLocalError': <class 'UnboundLocalError'>, 'UnicodeDecodeError': <class 'UnicodeDecodeError'>, 'UnicodeEncodeError': <class 'UnicodeEncodeError'>, 'UnicodeError': <class 'UnicodeError'>, 'UnicodeTranslateError': <class 'UnicodeTranslateError'>, 'UnicodeWarning': <class 'UnicodeWarning'>, 'UserWarning': <class 'UserWarning'>, 'ValueError': <class 'ValueError'>, 'Warning': <class 'Warning'>, 'ZeroDivisionError': <class 'ZeroDivisionError'>, '__build_class__': <built-in function __build_class__>, '__debug__': True, '__doc__': 'Built-in functions, exceptions, and other objects.\n' '\n' "Noteworthy: None is the `nil' object; Ellipsis represents `...' " 'in slices.', '__import__': <built-in function __import__>, '__loader__': <class '_frozen_importlib.BuiltinImporter'>, '__name__': 'builtins', '__package__': '', '__spec__': ModuleSpec(name='builtins', loader=<class '_frozen_importlib.BuiltinImporter'>), 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'ascii': <built-in function ascii>, 'bin': <built-in function bin>, 'bool': <class 'bool'>, 'bytearray': <class 'bytearray'>, 'bytes': <class 'bytes'>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'classmethod': <class 'classmethod'>, 'compile': <built-in function compile>, 'complex': <class 'complex'>, 'copyright': Copyright (c) 2001-2019 Python Software Foundat... <trimmed 6540 bytes string> |
__all__ | ['DiscoveryFailure', 'OPENID_1_0_NS', 'OPENID_1_0_TYPE', 'OPENID_1_1_TYPE', 'OPENID_2_0_TYPE', 'OPENID_IDP_2_0_TYPE', 'OpenIDServiceEndpoint', 'discover'] |
urllib | <module 'urllib' from '/usr/lib/python3.6/urllib/__init__.py'> |
logging | <module 'logging' from '/usr/lib/python3.6/logging/__init__.py'> |
fetchers | <module 'openid.fetchers' from '/var/www/html/myenv/lib/python3.6/site-packages/openid/fetchers.py'> |
urinorm | <module 'openid.urinorm' from '/var/www/html/myenv/lib/python3.6/site-packages/openid/urinorm.py'> |
yadis | <module 'openid.yadis' from '/var/www/html/myenv/lib/python3.6/site-packages/openid/yadis/__init__.py'> |
/var/www/html/myenv/lib/python3.6/site-packages/openid/yadis/etxrd.py
in <module>
from datetime import datetime
from time import strptime
from openid.oidutil import importElementTree, importSafeElementTree
ElementTree = importElementTree()
SafeElementTree = importSafeElementTree()...
from openid.yadis import xri
class XRDSError(Exception):
"""An error with the XRDS document."""
Variable | Value |
---|---|
__name__ | 'openid.yadis.etxrd' |
__doc__ | '\nElementTree interface to an XRD document.\n' |
__package__ | 'openid.yadis' |
__loader__ | <_frozen_importlib_external.SourceFileLoader object at 0x7faad0714630> |
__spec__ | ModuleSpec(name='openid.yadis.etxrd', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7faad0714630>, origin='/var/www/html/myenv/lib/python3.6/site-packages/openid/yadis/etxrd.py') |
__file__ | '/var/www/html/myenv/lib/python3.6/site-packages/openid/yadis/etxrd.py' |
__cached__ | '/var/www/html/myenv/lib/python3.6/site-packages/openid/yadis/__pycache__/etxrd.cpython-36.pyc' |
__builtins__ | {'ArithmeticError': <class 'ArithmeticError'>, 'AssertionError': <class 'AssertionError'>, 'AttributeError': <class 'AttributeError'>, 'BaseException': <class 'BaseException'>, 'BlockingIOError': <class 'BlockingIOError'>, 'BrokenPipeError': <class 'BrokenPipeError'>, 'BufferError': <class 'BufferError'>, 'BytesWarning': <class 'BytesWarning'>, 'ChildProcessError': <class 'ChildProcessError'>, 'ConnectionAbortedError': <class 'ConnectionAbortedError'>, 'ConnectionError': <class 'ConnectionError'>, 'ConnectionRefusedError': <class 'ConnectionRefusedError'>, 'ConnectionResetError': <class 'ConnectionResetError'>, 'DeprecationWarning': <class 'DeprecationWarning'>, 'EOFError': <class 'EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <class 'OSError'>, 'Exception': <class 'Exception'>, 'False': False, 'FileExistsError': <class 'FileExistsError'>, 'FileNotFoundError': <class 'FileNotFoundError'>, 'FloatingPointError': <class 'FloatingPointError'>, 'FutureWarning': <class 'FutureWarning'>, 'GeneratorExit': <class 'GeneratorExit'>, 'IOError': <class 'OSError'>, 'ImportError': <class 'ImportError'>, 'ImportWarning': <class 'ImportWarning'>, 'IndentationError': <class 'IndentationError'>, 'IndexError': <class 'IndexError'>, 'InterruptedError': <class 'InterruptedError'>, 'IsADirectoryError': <class 'IsADirectoryError'>, 'KeyError': <class 'KeyError'>, 'KeyboardInterrupt': <class 'KeyboardInterrupt'>, 'LookupError': <class 'LookupError'>, 'MemoryError': <class 'MemoryError'>, 'ModuleNotFoundError': <class 'ModuleNotFoundError'>, 'NameError': <class 'NameError'>, 'None': None, 'NotADirectoryError': <class 'NotADirectoryError'>, 'NotImplemented': NotImplemented, 'NotImplementedError': <class 'NotImplementedError'>, 'OSError': <class 'OSError'>, 'OverflowError': <class 'OverflowError'>, 'PendingDeprecationWarning': <class 'PendingDeprecationWarning'>, 'PermissionError': <class 'PermissionError'>, 'ProcessLookupError': <class 'ProcessLookupError'>, 'RecursionError': <class 'RecursionError'>, 'ReferenceError': <class 'ReferenceError'>, 'ResourceWarning': <class 'ResourceWarning'>, 'RuntimeError': <class 'RuntimeError'>, 'RuntimeWarning': <class 'RuntimeWarning'>, 'StopAsyncIteration': <class 'StopAsyncIteration'>, 'StopIteration': <class 'StopIteration'>, 'SyntaxError': <class 'SyntaxError'>, 'SyntaxWarning': <class 'SyntaxWarning'>, 'SystemError': <class 'SystemError'>, 'SystemExit': <class 'SystemExit'>, 'TabError': <class 'TabError'>, 'TimeoutError': <class 'TimeoutError'>, 'True': True, 'TypeError': <class 'TypeError'>, 'UnboundLocalError': <class 'UnboundLocalError'>, 'UnicodeDecodeError': <class 'UnicodeDecodeError'>, 'UnicodeEncodeError': <class 'UnicodeEncodeError'>, 'UnicodeError': <class 'UnicodeError'>, 'UnicodeTranslateError': <class 'UnicodeTranslateError'>, 'UnicodeWarning': <class 'UnicodeWarning'>, 'UserWarning': <class 'UserWarning'>, 'ValueError': <class 'ValueError'>, 'Warning': <class 'Warning'>, 'ZeroDivisionError': <class 'ZeroDivisionError'>, '__build_class__': <built-in function __build_class__>, '__debug__': True, '__doc__': 'Built-in functions, exceptions, and other objects.\n' '\n' "Noteworthy: None is the `nil' object; Ellipsis represents `...' " 'in slices.', '__import__': <built-in function __import__>, '__loader__': <class '_frozen_importlib.BuiltinImporter'>, '__name__': 'builtins', '__package__': '', '__spec__': ModuleSpec(name='builtins', loader=<class '_frozen_importlib.BuiltinImporter'>), 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'ascii': <built-in function ascii>, 'bin': <built-in function bin>, 'bool': <class 'bool'>, 'bytearray': <class 'bytearray'>, 'bytes': <class 'bytes'>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'classmethod': <class 'classmethod'>, 'compile': <built-in function compile>, 'complex': <class 'complex'>, 'copyright': Copyright (c) 2001-2019 Python Software Foundat... <trimmed 6540 bytes string> |
__all__ | ['nsTag', 'mkXRDTag', 'isXRDS', 'parseXRDS', 'getCanonicalID', 'getYadisXRD', 'getPriorityStrict', 'getPriority', 'prioSort', 'iterServices', 'expandService', 'expandServices'] |
sys | <module 'sys' (built-in)> |
random | <module 'random' from '/usr/lib/python3.6/random.py'> |
functools | <module 'functools' from '/usr/lib/python3.6/functools.py'> |
datetime | <class 'datetime.datetime'> |
strptime | <built-in function strptime> |
importElementTree | <function importElementTree at 0x7faad28c0158> |
importSafeElementTree | <function importSafeElementTree at 0x7faad28c00d0> |
ElementTree | <module 'xml.etree.cElementTree' from '/usr/lib/python3.6/xml/etree/cElementTree.py'> |
/var/www/html/myenv/lib/python3.6/site-packages/openid/oidutil.py
in importSafeElementTree
a safe ElementTree. Defaults to C{L{xxe_safe_elementtree_modules}}
@returns: An ElementTree module that is not vulnerable to XXE.
"""
if module_names is None:
module_names = xxe_safe_elementtree_modules
try:
return importElementTree(module_names)...
except ImportError:
raise ImportError('Unable to find a ElementTree module '
'that is not vulnerable to XXE. '
'Tried importing %r' % (module_names,))
Variable | Value |
---|---|
module_names | ['defusedxml.cElementTree', 'defusedxml.ElementTree'] |
/var/www/html/myenv/lib/python3.6/site-packages/openid/oidutil.py
in importElementTree
@returns: An ElementTree module
"""
if module_names is None:
module_names = elementtree_modules
for mod_name in module_names:
try:
ElementTree = __import__(mod_name, None, None, ['unused'])...
except ImportError:
pass
else:
# Make sure it can actually parse XML
try:
ElementTree.XML('<unused/>')
Variable | Value |
---|---|
mod_name | 'defusedxml.cElementTree' |
module_names | ['defusedxml.cElementTree', 'defusedxml.ElementTree'] |
/var/www/html/myenv/lib/python3.6/site-packages/defusedxml/cElementTree.py
in <module>
from xml.etree.cElementTree import TreeBuilder as _TreeBuilder
from xml.etree.cElementTree import parse as _parse
from xml.etree.cElementTree import tostring
# iterparse from ElementTree!
from xml.etree.ElementTree import iterparse as _iterparse
from .ElementTree import DefusedXMLParser, _IterParseIterator...
from .common import _generate_etree_functions
__origin__ = "xml.etree.cElementTree"
XMLTreeBuilder = XMLParse = DefusedXMLParser
Variable | Value |
---|---|
__name__ | 'defusedxml.cElementTree' |
__doc__ | 'Defused xml.etree.cElementTree\n' |
__package__ | 'defusedxml' |
__loader__ | <_frozen_importlib_external.SourceFileLoader object at 0x7faad0db4da0> |
__spec__ | ModuleSpec(name='defusedxml.cElementTree', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7faad0db4da0>, origin='/var/www/html/myenv/lib/python3.6/site-packages/defusedxml/cElementTree.py') |
__file__ | '/var/www/html/myenv/lib/python3.6/site-packages/defusedxml/cElementTree.py' |
__cached__ | '/var/www/html/myenv/lib/python3.6/site-packages/defusedxml/__pycache__/cElementTree.cpython-36.pyc' |
__builtins__ | {'ArithmeticError': <class 'ArithmeticError'>, 'AssertionError': <class 'AssertionError'>, 'AttributeError': <class 'AttributeError'>, 'BaseException': <class 'BaseException'>, 'BlockingIOError': <class 'BlockingIOError'>, 'BrokenPipeError': <class 'BrokenPipeError'>, 'BufferError': <class 'BufferError'>, 'BytesWarning': <class 'BytesWarning'>, 'ChildProcessError': <class 'ChildProcessError'>, 'ConnectionAbortedError': <class 'ConnectionAbortedError'>, 'ConnectionError': <class 'ConnectionError'>, 'ConnectionRefusedError': <class 'ConnectionRefusedError'>, 'ConnectionResetError': <class 'ConnectionResetError'>, 'DeprecationWarning': <class 'DeprecationWarning'>, 'EOFError': <class 'EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <class 'OSError'>, 'Exception': <class 'Exception'>, 'False': False, 'FileExistsError': <class 'FileExistsError'>, 'FileNotFoundError': <class 'FileNotFoundError'>, 'FloatingPointError': <class 'FloatingPointError'>, 'FutureWarning': <class 'FutureWarning'>, 'GeneratorExit': <class 'GeneratorExit'>, 'IOError': <class 'OSError'>, 'ImportError': <class 'ImportError'>, 'ImportWarning': <class 'ImportWarning'>, 'IndentationError': <class 'IndentationError'>, 'IndexError': <class 'IndexError'>, 'InterruptedError': <class 'InterruptedError'>, 'IsADirectoryError': <class 'IsADirectoryError'>, 'KeyError': <class 'KeyError'>, 'KeyboardInterrupt': <class 'KeyboardInterrupt'>, 'LookupError': <class 'LookupError'>, 'MemoryError': <class 'MemoryError'>, 'ModuleNotFoundError': <class 'ModuleNotFoundError'>, 'NameError': <class 'NameError'>, 'None': None, 'NotADirectoryError': <class 'NotADirectoryError'>, 'NotImplemented': NotImplemented, 'NotImplementedError': <class 'NotImplementedError'>, 'OSError': <class 'OSError'>, 'OverflowError': <class 'OverflowError'>, 'PendingDeprecationWarning': <class 'PendingDeprecationWarning'>, 'PermissionError': <class 'PermissionError'>, 'ProcessLookupError': <class 'ProcessLookupError'>, 'RecursionError': <class 'RecursionError'>, 'ReferenceError': <class 'ReferenceError'>, 'ResourceWarning': <class 'ResourceWarning'>, 'RuntimeError': <class 'RuntimeError'>, 'RuntimeWarning': <class 'RuntimeWarning'>, 'StopAsyncIteration': <class 'StopAsyncIteration'>, 'StopIteration': <class 'StopIteration'>, 'SyntaxError': <class 'SyntaxError'>, 'SyntaxWarning': <class 'SyntaxWarning'>, 'SystemError': <class 'SystemError'>, 'SystemExit': <class 'SystemExit'>, 'TabError': <class 'TabError'>, 'TimeoutError': <class 'TimeoutError'>, 'True': True, 'TypeError': <class 'TypeError'>, 'UnboundLocalError': <class 'UnboundLocalError'>, 'UnicodeDecodeError': <class 'UnicodeDecodeError'>, 'UnicodeEncodeError': <class 'UnicodeEncodeError'>, 'UnicodeError': <class 'UnicodeError'>, 'UnicodeTranslateError': <class 'UnicodeTranslateError'>, 'UnicodeWarning': <class 'UnicodeWarning'>, 'UserWarning': <class 'UserWarning'>, 'ValueError': <class 'ValueError'>, 'Warning': <class 'Warning'>, 'ZeroDivisionError': <class 'ZeroDivisionError'>, '__build_class__': <built-in function __build_class__>, '__debug__': True, '__doc__': 'Built-in functions, exceptions, and other objects.\n' '\n' "Noteworthy: None is the `nil' object; Ellipsis represents `...' " 'in slices.', '__import__': <built-in function __import__>, '__loader__': <class '_frozen_importlib.BuiltinImporter'>, '__name__': 'builtins', '__package__': '', '__spec__': ModuleSpec(name='builtins', loader=<class '_frozen_importlib.BuiltinImporter'>), 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'ascii': <built-in function ascii>, 'bin': <built-in function bin>, 'bool': <class 'bool'>, 'bytearray': <class 'bytearray'>, 'bytes': <class 'bytes'>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'classmethod': <class 'classmethod'>, 'compile': <built-in function compile>, 'complex': <class 'complex'>, 'copyright': Copyright (c) 2001-2019 Python Software Foundat... <trimmed 6540 bytes string> |
absolute_import | _Feature((2, 5, 0, 'alpha', 1), (3, 0, 0, 'alpha', 0), 16384) |
_TreeBuilder | <class 'xml.etree.ElementTree.TreeBuilder'> |
_parse | <function parse at 0x7faad2342730> |
tostring | <function tostring at 0x7faad2342158> |
_iterparse | <function iterparse at 0x7faad23427b8> |
/var/www/html/myenv/lib/python3.6/site-packages/defusedxml/ElementTree.py
in <module>
else:
_IterParseIterator = pure_pymod._IterParseIterator
ParseError = pure_pymod.ParseError
return _XMLParser, _iterparse, _IterParseIterator, ParseError
if PY3:
_XMLParser, _iterparse, _IterParseIterator, ParseError = _get_py3_cls()...
class DefusedXMLParser(_XMLParser):
def __init__(self, html=0, target=None, encoding=None,
forbid_dtd=False, forbid_entities=True,
forbid_external=True):
Variable | Value |
---|---|
__name__ | 'defusedxml.ElementTree' |
__doc__ | 'Defused xml.etree.ElementTree facade\n' |
__package__ | 'defusedxml' |
__loader__ | <_frozen_importlib_external.SourceFileLoader object at 0x7faad0db46a0> |
__spec__ | ModuleSpec(name='defusedxml.ElementTree', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7faad0db46a0>, origin='/var/www/html/myenv/lib/python3.6/site-packages/defusedxml/ElementTree.py') |
__file__ | '/var/www/html/myenv/lib/python3.6/site-packages/defusedxml/ElementTree.py' |
__cached__ | '/var/www/html/myenv/lib/python3.6/site-packages/defusedxml/__pycache__/ElementTree.cpython-36.pyc' |
__builtins__ | {'ArithmeticError': <class 'ArithmeticError'>, 'AssertionError': <class 'AssertionError'>, 'AttributeError': <class 'AttributeError'>, 'BaseException': <class 'BaseException'>, 'BlockingIOError': <class 'BlockingIOError'>, 'BrokenPipeError': <class 'BrokenPipeError'>, 'BufferError': <class 'BufferError'>, 'BytesWarning': <class 'BytesWarning'>, 'ChildProcessError': <class 'ChildProcessError'>, 'ConnectionAbortedError': <class 'ConnectionAbortedError'>, 'ConnectionError': <class 'ConnectionError'>, 'ConnectionRefusedError': <class 'ConnectionRefusedError'>, 'ConnectionResetError': <class 'ConnectionResetError'>, 'DeprecationWarning': <class 'DeprecationWarning'>, 'EOFError': <class 'EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <class 'OSError'>, 'Exception': <class 'Exception'>, 'False': False, 'FileExistsError': <class 'FileExistsError'>, 'FileNotFoundError': <class 'FileNotFoundError'>, 'FloatingPointError': <class 'FloatingPointError'>, 'FutureWarning': <class 'FutureWarning'>, 'GeneratorExit': <class 'GeneratorExit'>, 'IOError': <class 'OSError'>, 'ImportError': <class 'ImportError'>, 'ImportWarning': <class 'ImportWarning'>, 'IndentationError': <class 'IndentationError'>, 'IndexError': <class 'IndexError'>, 'InterruptedError': <class 'InterruptedError'>, 'IsADirectoryError': <class 'IsADirectoryError'>, 'KeyError': <class 'KeyError'>, 'KeyboardInterrupt': <class 'KeyboardInterrupt'>, 'LookupError': <class 'LookupError'>, 'MemoryError': <class 'MemoryError'>, 'ModuleNotFoundError': <class 'ModuleNotFoundError'>, 'NameError': <class 'NameError'>, 'None': None, 'NotADirectoryError': <class 'NotADirectoryError'>, 'NotImplemented': NotImplemented, 'NotImplementedError': <class 'NotImplementedError'>, 'OSError': <class 'OSError'>, 'OverflowError': <class 'OverflowError'>, 'PendingDeprecationWarning': <class 'PendingDeprecationWarning'>, 'PermissionError': <class 'PermissionError'>, 'ProcessLookupError': <class 'ProcessLookupError'>, 'RecursionError': <class 'RecursionError'>, 'ReferenceError': <class 'ReferenceError'>, 'ResourceWarning': <class 'ResourceWarning'>, 'RuntimeError': <class 'RuntimeError'>, 'RuntimeWarning': <class 'RuntimeWarning'>, 'StopAsyncIteration': <class 'StopAsyncIteration'>, 'StopIteration': <class 'StopIteration'>, 'SyntaxError': <class 'SyntaxError'>, 'SyntaxWarning': <class 'SyntaxWarning'>, 'SystemError': <class 'SystemError'>, 'SystemExit': <class 'SystemExit'>, 'TabError': <class 'TabError'>, 'TimeoutError': <class 'TimeoutError'>, 'True': True, 'TypeError': <class 'TypeError'>, 'UnboundLocalError': <class 'UnboundLocalError'>, 'UnicodeDecodeError': <class 'UnicodeDecodeError'>, 'UnicodeEncodeError': <class 'UnicodeEncodeError'>, 'UnicodeError': <class 'UnicodeError'>, 'UnicodeTranslateError': <class 'UnicodeTranslateError'>, 'UnicodeWarning': <class 'UnicodeWarning'>, 'UserWarning': <class 'UserWarning'>, 'ValueError': <class 'ValueError'>, 'Warning': <class 'Warning'>, 'ZeroDivisionError': <class 'ZeroDivisionError'>, '__build_class__': <built-in function __build_class__>, '__debug__': True, '__doc__': 'Built-in functions, exceptions, and other objects.\n' '\n' "Noteworthy: None is the `nil' object; Ellipsis represents `...' " 'in slices.', '__import__': <built-in function __import__>, '__loader__': <class '_frozen_importlib.BuiltinImporter'>, '__name__': 'builtins', '__package__': '', '__spec__': ModuleSpec(name='builtins', loader=<class '_frozen_importlib.BuiltinImporter'>), 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'ascii': <built-in function ascii>, 'bin': <built-in function bin>, 'bool': <class 'bool'>, 'bytearray': <class 'bytearray'>, 'bytes': <class 'bytes'>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'classmethod': <class 'classmethod'>, 'compile': <built-in function compile>, 'complex': <class 'complex'>, 'copyright': Copyright (c) 2001-2019 Python Software Foundat... <trimmed 6540 bytes string> |
print_function | _Feature((2, 6, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 65536) |
absolute_import | _Feature((2, 5, 0, 'alpha', 1), (3, 0, 0, 'alpha', 0), 16384) |
sys | <module 'sys' (built-in)> |
PY3 | True |
PY26 | False |
PY31 | False |
importlib | <module 'importlib' from '/usr/lib/python3.6/importlib/__init__.py'> |
_TreeBuilder | <class 'xml.etree.ElementTree.TreeBuilder'> |
_parse | <function parse at 0x7faad2342730> |
tostring | <function tostring at 0x7faad2342158> |
DTDForbidden | <class 'defusedxml.common.DTDForbidden'> |
EntitiesForbidden | <class 'defusedxml.common.EntitiesForbidden'> |
ExternalReferenceForbidden | <class 'defusedxml.common.ExternalReferenceForbidden'> |
_generate_etree_functions | <function _generate_etree_functions at 0x7faad1035620> |
__origin__ | 'xml.etree.ElementTree' |
_get_py3_cls | <function _get_py3_cls at 0x7faad0d56c80> |
/var/www/html/myenv/lib/python3.6/site-packages/defusedxml/ElementTree.py
in _get_py3_cls
_XMLParser = pure_pymod.XMLParser
_iterparse = pure_pymod.iterparse
if PY31:
_IterParseIterator = None
from xml.parsers.expat import ExpatError as ParseError
else:
_IterParseIterator = pure_pymod._IterParseIterator...
ParseError = pure_pymod.ParseError
return _XMLParser, _iterparse, _IterParseIterator, ParseError
if PY3:
_XMLParser, _iterparse, _IterParseIterator, ParseError = _get_py3_cls()
Variable | Value |
---|---|
_iterparse | <function iterparse at 0x7faad13a9510> |
_XMLParser | <class 'xml.etree.ElementTree.XMLParser'> |
pure_pymod | <module 'xml.etree.ElementTree' from '/usr/lib/python3.6/xml/etree/ElementTree.py'> |
cmod | <module '_elementtree' (built-in)> |
pymod | <module 'xml.etree.ElementTree' from '/usr/lib/python3.6/xml/etree/ElementTree.py'> |
cmodname | '_elementtree' |
pymodname | 'xml.etree.ElementTree' |
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
GATEWAY_INTERFACE | 'CGI/1.1' |
SERVER_PROTOCOL | 'HTTP/1.1' |
REQUEST_METHOD | 'GET' |
QUERY_STRING | '' |
REQUEST_URI | '/social-auth/login/google-oauth2/' |
SCRIPT_NAME | '' |
PATH_INFO | '/social-auth/login/google-oauth2/' |
PATH_TRANSLATED | '/var/www/html/totetiroler/wsgi.py/social-auth/login/google-oauth2/' |
HTTP_HOST | 'totetiroler.acdh.oeaw.ac.at' |
HTTP_X_REQUEST_ID | 'a5ebc63d3e4958992d8174e08489d01e' |
HTTP_X_REAL_IP | '193.170.85.96' |
HTTP_X_FORWARDED_FOR | '193.170.85.96, 10.3.6.65' |
HTTP_X_FORWARDED_HOST | 'totetiroler.acdh.oeaw.ac.at, totetiroler.acdh.oeaw.ac.at' |
HTTP_X_FORWARDED_PORT | '443' |
HTTP_X_FORWARDED_PROTO | 'https' |
HTTP_X_FORWARDED_SCHEME | 'https' |
HTTP_X_SCHEME | 'https' |
HTTP_ACCEPT | '*/*' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_FRONT_END_HTTPS | 'on' |
HTTP_X_FORWARDED_SERVER | 'totetiroler.acdh.oeaw.ac.at' |
HTTP_CONNECTION | 'Keep-Alive' |
SERVER_SIGNATURE | ('<address>Apache/2.4.29 (Ubuntu) Server at totetiroler.acdh.oeaw.ac.at Port ' '80</address>\n') |
SERVER_SOFTWARE | 'Apache/2.4.29 (Ubuntu)' |
SERVER_NAME | 'totetiroler.acdh.oeaw.ac.at' |
SERVER_ADDR | '172.17.0.60' |
SERVER_PORT | '80' |
REMOTE_ADDR | '172.17.0.1' |
DOCUMENT_ROOT | '/var/www/html' |
REQUEST_SCHEME | 'http' |
CONTEXT_PREFIX | '' |
CONTEXT_DOCUMENT_ROOT | '/var/www/html' |
SERVER_ADMIN | '[no address given]' |
SCRIPT_FILENAME | '/var/www/html/totetiroler/wsgi.py' |
REMOTE_PORT | '40058' |
mod_wsgi.script_name | '' |
mod_wsgi.path_info | '/social-auth/login/google-oauth2/' |
mod_wsgi.process_group | 'totetiroler.acdh.oeaw.ac.at' |
mod_wsgi.application_group | '' |
mod_wsgi.callable_object | 'application' |
mod_wsgi.request_handler | 'wsgi-script' |
mod_wsgi.handler_script | '' |
mod_wsgi.script_reloading | '1' |
mod_wsgi.listener_host | '' |
mod_wsgi.listener_port | '80' |
mod_wsgi.enable_sendfile | '0' |
mod_wsgi.ignore_activity | '0' |
mod_wsgi.request_start | '1711654386449004' |
mod_wsgi.request_id | 'bLqulx3NCek' |
mod_wsgi.queue_start | '1711654386449433' |
mod_wsgi.daemon_connects | '1' |
mod_wsgi.daemon_restarts | '0' |
mod_wsgi.daemon_start | '1711654386449748' |
mod_wsgi.script_start | '1711654386449838' |
wsgi.version | (1, 0) |
wsgi.multithread | True |
wsgi.multiprocess | False |
wsgi.run_once | False |
wsgi.url_scheme | 'http' |
wsgi.errors | <_io.TextIOWrapper name='<wsgi.errors>' encoding='utf-8'> |
wsgi.input | <mod_wsgi.Input object at 0x7faad071dab0> |
wsgi.file_wrapper | '' |
apache.version | (2, 4, 29) |
mod_wsgi.version | (4, 5, 17) |
mod_wsgi.total_requests | 46440 |
mod_wsgi.thread_id | 2 |
mod_wsgi.thread_requests | 8204 |
totetiroler.settings.server
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALLOWED_HOSTS | ['.totetiroler.eos.arz.oeaw.ac.at', '.totetiroler1.eos.arz.oeaw.ac.at', 'totetiroler.acdh.oeaw.ac.at'] |
ALLOWED_INCLUDE_ROOTS | [] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ('django.contrib.auth.backends.ModelBackend', 'social.backends.facebook.Facebook2OAuth2', 'social.backends.google.GoogleOAuth2') |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | '/var/www/html' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CRISPY_TEMPLATE_PACK | 'bootstrap3' |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
CSRF_COOKIE_SECURE | False |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_HEADER_NAME | 'HTTP_X_CSRFTOKEN' |
CSRF_TRUSTED_ORIGINS | [] |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.mysql', 'HOST': 'helios.arz.oeaw.ac.at', 'NAME': 'totetiroler', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '3306', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'totetiroler'}} |
DATABASE_ROUTERS | [] |
DATETIME_FORMAT | 'N j, Y, P' |
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'] |
DATE_FORMAT | 'N j, Y' |
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'] |
DEBUG | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DECIMAL_SEPARATOR | '.' |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_CONTENT_TYPE | 'text/html' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'localhost' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | '' |
EMAIL_PORT | 25 |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | '********************' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
EMAIL_TIMEOUT | None |
EMAIL_USE_SSL | False |
EMAIL_USE_TLS | False |
FILE_CHARSET | 'utf-8' |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler'] |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
FILE_UPLOAD_PERMISSIONS | None |
FILE_UPLOAD_TEMP_DIR | None |
FIRST_DAY_OF_WEEK | 0 |
FIXTURE_DIRS | [] |
FORCE_SCRIPT_NAME | None |
FORMAT_MODULE_PATH | None |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django_extensions', 'django_filters', 'django_tables2', 'crispy_forms', 'rest_framework', 'django_spaghetti', 'social.apps.django_app.default', 'webpage', 'account', 'places', 'persons', 'browsing', 'charts'] |
INTERNAL_IPS | [] |
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-co', 'Colombian 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'), ('gd', 'Scottish Gaelic'), ('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-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')] |
LANGUAGES_BIDI | ['he', 'ar', 'fa', 'ur'] |
LANGUAGE_CODE | 'en-us' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LOCALE_PATHS | [] |
LOGGING | {} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7faad3c085f8> |
LOGIN_URL | '/accounts/login/' |
LOGOUT_URL | '/accounts/logout/' |
MANAGERS | [] |
MEDIA_ROOT | '/var/www/html/media/' |
MEDIA_URL | '/media/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE_CLASSES | ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
ROOT_URLCONF | 'totetiroler.urls' |
SECRET_KEY | '********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | False |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | False |
SERVER_EMAIL | 'root@localhost' |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_AGE | 1209600 |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_HTTPONLY | True |
SESSION_COOKIE_NAME | 'sessionid' |
SESSION_COOKIE_PATH | '/' |
SESSION_COOKIE_SECURE | False |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'totetiroler.settings.server' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
SOCIAL_AUTH_FACEBOOK_KEY | '********************' |
SOCIAL_AUTH_FACEBOOK_SECRET | '********************' |
SOCIAL_AUTH_GOOGLE_OAUTH2_KEY | '********************' |
SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET | '********************' |
SPAGHETTI_SAUCE | {'apps': ['persons', 'places'], 'exclude': {'auth': ['user']}, 'show_fields': False} |
STATICFILES_DIRS | [] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/var/www/html/staticfiles/' |
STATIC_URL | '/static/' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [], 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages']}}] |
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'] |
TEMPLATE_DEBUG | False |
TEMPLATE_DIRS | [] |
TEMPLATE_LOADERS | ['django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader'] |
TEMPLATE_STRING_IF_INVALID | '' |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | ',' |
TIME_FORMAT | 'P' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
TIME_ZONE | 'UTC' |
USE_ETAGS | False |
USE_I18N | True |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | True |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WSGI_APPLICATION | 'totetiroler.wsgi.application' |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
YEAR_MONTH_FORMAT | 'F Y' |
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.