'AnonymousUser' object is not iterable
Request Method: | GET |
---|---|
Request URL: | http://supervascainos.com/comments/ |
Django Version: | 3.2.14 |
Exception Type: | TypeError |
Exception Value: | 'AnonymousUser' object is not iterable |
Exception Location: | /home/supervascainosv23/venv/supervascainosv23/lib/python3.8/site-packages/django/utils/functional.py, line 247, in inner |
Python Executable: | /home/supervascainosv23/venv/supervascainosv23/bin/python |
Python Version: | 3.8.10 |
Python Path: | ['/home/supervascainosv23/application/app', '/home/supervascainosv23/application', '/home/supervascainosv23/venv/supervascainosv23/bin', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/supervascainosv23/venv/supervascainosv23/lib/python3.8/site-packages', '/home/supervascainosv23/venv/supervascainosv23/lib/python3.8/site-packages/odf', '/home/supervascainosv23/venv/supervascainosv23/lib/python3.8/site-packages/odf', '/home/supervascainosv23/venv/supervascainosv23/lib/python3.8/site-packages/odf', '/home/supervascainosv23/venv/supervascainosv23/lib/python3.8/site-packages/odf', '/home/supervascainosv23/venv/supervascainosv23/lib/python3.8/site-packages/odf', '/home/supervascainosv23/venv/supervascainosv23/lib/python3.8/site-packages/odf', '/home/supervascainosv23/venv/supervascainosv23/lib/python3.8/site-packages/odf'] |
Server time: | Thu, 28 Mar 2024 07:50:50 -0300 |
/home/supervascainosv23/venv/supervascainosv23/lib/python3.8/site-packages/django/core/handlers/exception.py
, line 47, in inner
response = await sync_to_async(response_for_exception, thread_sensitive=False)(request, exc)
return response
return inner
else:
@wraps(get_response)
def inner(request):
try:
response = get_response(request)…
except Exception as exc:
response = response_for_exception(request, exc)
return response
return inner
Variable | Value |
---|---|
exc | TypeError("'AnonymousUser' object is not iterable") |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7fa8230b9d00>> |
request | <WSGIRequest: GET '/comments/'> |
/home/supervascainosv23/venv/supervascainosv23/lib/python3.8/site-packages/django/core/handlers/base.py
, line 181, in _get_response
if response is None:
wrapped_callback = self.make_view_atomic(callback)
# If it is an asynchronous view, run it in a subthread.
if asyncio.iscoroutinefunction(wrapped_callback):
wrapped_callback = async_to_sync(wrapped_callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)…
except Exception as e:
response = self.process_exception_by_middleware(e, request)
if response is None:
raise
# Complain if the view returned None (a common error).
Variable | Value |
---|---|
callback | <function AnswersCommentsFriendsView at 0x7fa8220ea0d0> |
callback_args | () |
callback_kwargs | {} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7fa822ee4ca0>> |
request | <WSGIRequest: GET '/comments/'> |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7fa8230b9d00> |
wrapped_callback | <function AnswersCommentsFriendsView at 0x7fa8220ea0d0> |
/home/supervascainosv23/venv/supervascainosv23/lib/python3.8/site-packages/django/utils/decorators.py
, line 130, in _wrapped_view
if result is not None:
return result
if hasattr(middleware, 'process_view'):
result = middleware.process_view(request, view_func, args, kwargs)
if result is not None:
return result
try:
response = view_func(request, *args, **kwargs)…
except Exception as e:
if hasattr(middleware, 'process_exception'):
result = middleware.process_exception(request, e)
if result is not None:
return result
raise
Variable | Value |
---|---|
args | () |
kwargs | {} |
middleware | <django.middleware.cache.CacheMiddleware object at 0x7fa8220e9c10> |
request | <WSGIRequest: GET '/comments/'> |
result | None |
view_func | <function AnswersCommentsFriendsView at 0x7fa8220e5a60> |
/home/supervascainosv23/venv/supervascainosv23/lib/python3.8/site-packages/django/views/generic/base.py
, line 70, in view
self = cls(**initkwargs)
self.setup(request, *args, **kwargs)
if not hasattr(self, 'request'):
raise AttributeError(
"%s instance has no 'request' attribute. Did you override "
"setup() and forget to call super()?" % cls.__name__
)
return self.dispatch(request, *args, **kwargs)…
view.view_class = cls
view.view_initkwargs = initkwargs
# take name and docstring from class
update_wrapper(view, cls, updated=())
Variable | Value |
---|---|
args | () |
cls | <class 'socialcomments.views.AnswersCommentsFriendsView'> |
initkwargs | {} |
kwargs | {} |
request | <WSGIRequest: GET '/comments/'> |
self | <socialcomments.views.AnswersCommentsFriendsView object at 0x7fa8208a02e0> |
/home/supervascainosv23/venv/supervascainosv23/lib/python3.8/site-packages/django/views/generic/base.py
, line 98, in dispatch
# Try to dispatch to the right method; if a method doesn't exist,
# defer to the error handler. Also defer to the error handler if the
# request method isn't on the approved list.
if request.method.lower() in self.http_method_names:
handler = getattr(self, request.method.lower(), self.http_method_not_allowed)
else:
handler = self.http_method_not_allowed
return handler(request, *args, **kwargs)…
def http_method_not_allowed(self, request, *args, **kwargs):
logger.warning(
'Method Not Allowed (%s): %s', request.method, request.path,
extra={'status_code': 405, 'request': request}
)
Variable | Value |
---|---|
args | () |
handler | <bound method BaseListView.get of <socialcomments.views.AnswersCommentsFriendsView object at 0x7fa8208a02e0>> |
kwargs | {} |
request | <WSGIRequest: GET '/comments/'> |
self | <socialcomments.views.AnswersCommentsFriendsView object at 0x7fa8208a02e0> |
/home/supervascainosv23/venv/supervascainosv23/lib/python3.8/site-packages/django/views/generic/list.py
, line 142, in get
context.update(kwargs)
return super().get_context_data(**context)
class BaseListView(MultipleObjectMixin, View):
"""A base view for displaying a list of objects."""
def get(self, request, *args, **kwargs):
self.object_list = self.get_queryset()…
allow_empty = self.get_allow_empty()
if not allow_empty:
# When pagination is enabled and object_list is a queryset,
# it's better to do a cheap query than to load the unpaginated
# queryset in memory.
Variable | Value |
---|---|
args | () |
kwargs | {} |
request | <WSGIRequest: GET '/comments/'> |
self | <socialcomments.views.AnswersCommentsFriendsView object at 0x7fa8208a02e0> |
/home/supervascainosv23/application/app/socialcomments/views.py
, line 420, in get_queryset
class AnswersCommentsFriendsView(PaginationMixin, ListView):
model = Comment
template_name = 'socialcomments/comments_list.html'
context_object_name = 'comments'
paginate_by = 10
def get_queryset(self):
friends = Friendship.objects.friends_of(self.request.user)…
queryset = super(AnswersCommentsFriendsView, self).get_queryset()
queryset = queryset.filter(user__in=friends).order_by('-created_at')
return queryset
Variable | Value |
---|---|
__class__ | <class 'socialcomments.views.AnswersCommentsFriendsView'> |
self | <socialcomments.views.AnswersCommentsFriendsView object at 0x7fa8208a02e0> |
/home/supervascainosv23/application/app/friends/models.py
, line 145, in friends_of
:param user: User to query friends.
:type user: |User|
:param shuffle: Optional. Default ``False``.
:type shuffle: |bool|
:returns: :class:`~django.db.models.query.QuerySet` containing friends
of ``user``.
"""
qs = User.objects.filter(friendship__friends__user=user)…
if shuffle:
qs = qs.order_by('?')
return qs
def are_friends(self, user1, user2):
"""
Variable | Value |
---|---|
self | <friends.models.FriendshipManager object at 0x7fa823d7f8b0> |
shuffle | False |
user | <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7fa8208a0fd0>> |
/home/supervascainosv23/venv/supervascainosv23/lib/python3.8/site-packages/django/db/models/manager.py
, line 85, in manager_method
def check(self, **kwargs):
return []
@classmethod
def _get_queryset_methods(cls, queryset_class):
def create_method(name, method):
def manager_method(self, *args, **kwargs):
return getattr(self.get_queryset(), name)(*args, **kwargs)…
manager_method.__name__ = method.__name__
manager_method.__doc__ = method.__doc__
return manager_method
new_methods = {}
for name, method in inspect.getmembers(queryset_class, predicate=inspect.isfunction):
Variable | Value |
---|---|
args | () |
kwargs | {'friendship__friends__user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7fa8208a0fd0>>} |
name | 'filter' |
self | <django.contrib.auth.models.UserManager object at 0x7fa82539b3d0> |
/home/supervascainosv23/venv/supervascainosv23/lib/python3.8/site-packages/django/db/models/query.py
, line 941, in filter
def filter(self, *args, **kwargs):
"""
Return a new QuerySet instance with the args ANDed to the existing
set.
"""
self._not_support_combined_queries('filter')
return self._filter_or_exclude(False, args, kwargs)…
def exclude(self, *args, **kwargs):
"""
Return a new QuerySet instance with NOT (args) ANDed to the existing
set.
"""
Variable | Value |
---|---|
args | () |
kwargs | {'friendship__friends__user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7fa8208a0fd0>>} |
self | <QuerySet [<User: leonardo_dutra84>, <User: JUVENCIO>, <User: Vinicyus>, <User: carlosateofim>, <User: lucianoqueiroz>, <User: jrcariocausa>, <User: paulooliveir>, <User: almir2013>, <User: juvencioxd>, <User: juliaci>, <User: damiaops>, <User: 20908>, <User: Juninho14>, <User: Antonioparaujo>, <User: marcioluizporto>, <User: mosaniel>, <User: HenriqueGondim>, <User: sergiomarques>, <User: marcelo181>, <User: farenhait>, '...(remaining elements truncated)...']> |
/home/supervascainosv23/venv/supervascainosv23/lib/python3.8/site-packages/django/db/models/query.py
, line 961, in _filter_or_exclude
"Cannot filter a query once a slice has been taken."
clone = self._chain()
if self._defer_next_filter:
self._defer_next_filter = False
clone._deferred_filter = negate, args, kwargs
else:
clone._filter_or_exclude_inplace(negate, args, kwargs)…
return clone
def _filter_or_exclude_inplace(self, negate, args, kwargs):
if negate:
self._query.add_q(~Q(*args, **kwargs))
else:
Variable | Value |
---|---|
args | () |
clone | <QuerySet [<User: vasco>, <User: vasco>, <User: vasco>, <User: vasco>, <User: vasco>, <User: vasco>, <User: vasco>, <User: vasco>, <User: vasco>, <User: vasco>, <User: vasco>, <User: vasco>, <User: vasco>, <User: vasco>, <User: vasco>, <User: vasco>, <User: vasco>, <User: vasco>, <User: vasco>, <User: vasco>, '...(remaining elements truncated)...']> |
kwargs | {'friendship__friends__user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7fa8208a0fd0>>} |
negate | False |
self | <QuerySet [<User: leonardo_dutra84>, <User: JUVENCIO>, <User: Vinicyus>, <User: carlosateofim>, <User: lucianoqueiroz>, <User: jrcariocausa>, <User: paulooliveir>, <User: almir2013>, <User: juvencioxd>, <User: juliaci>, <User: damiaops>, <User: 20908>, <User: Juninho14>, <User: Antonioparaujo>, <User: marcioluizporto>, <User: mosaniel>, <User: HenriqueGondim>, <User: sergiomarques>, <User: marcelo181>, <User: farenhait>, '...(remaining elements truncated)...']> |
/home/supervascainosv23/venv/supervascainosv23/lib/python3.8/site-packages/django/db/models/query.py
, line 968, in _filter_or_exclude_inplace
clone._filter_or_exclude_inplace(negate, args, kwargs)
return clone
def _filter_or_exclude_inplace(self, negate, args, kwargs):
if negate:
self._query.add_q(~Q(*args, **kwargs))
else:
self._query.add_q(Q(*args, **kwargs))…
def complex_filter(self, filter_obj):
"""
Return a new QuerySet instance with filter_obj added to the filters.
filter_obj can be a Q object or a dictionary of keyword lookup
Variable | Value |
---|---|
args | () |
kwargs | {'friendship__friends__user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7fa8208a0fd0>>} |
negate | False |
self | <QuerySet [<User: vasco>, <User: vasco>, <User: vasco>, <User: vasco>, <User: vasco>, <User: vasco>, <User: vasco>, <User: vasco>, <User: vasco>, <User: vasco>, <User: vasco>, <User: vasco>, <User: vasco>, <User: vasco>, <User: vasco>, <User: vasco>, <User: vasco>, <User: vasco>, <User: vasco>, <User: vasco>, '...(remaining elements truncated)...']> |
/home/supervascainosv23/venv/supervascainosv23/lib/python3.8/site-packages/django/db/models/sql/query.py
, line 1416, in add_q
# For join promotion this case is doing an AND for the added q_object
# and existing conditions. So, any existing inner join forces the join
# type to remain inner. Existing outer joins can however be demoted.
# (Consider case where rel_a is LOUTER and rel_a__col=1 is added - if
# rel_a doesn't produce any rows, then the whole condition must fail.
# So, demotion is OK.
existing_inner = {a for a in self.alias_map if self.alias_map[a].join_type == INNER}
clause, _ = self._add_q(q_object, self.used_aliases)…
if clause:
self.where.add(clause, AND)
self.demote_joins(existing_inner)
def build_where(self, filter_expr):
return self.build_filter(filter_expr, allow_joins=False)[0]
Variable | Value |
---|---|
existing_inner | set() |
q_object | <Q: (AND: ('friendship__friends__user', <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7fa8208a0fd0>>))> |
self | <django.db.models.sql.query.Query object at 0x7fa8208a0ca0> |
/home/supervascainosv23/venv/supervascainosv23/lib/python3.8/site-packages/django/db/models/sql/query.py
, line 1435, in _add_q
connector = q_object.connector
current_negated = current_negated ^ q_object.negated
branch_negated = branch_negated or q_object.negated
target_clause = self.where_class(connector=connector,
negated=q_object.negated)
joinpromoter = JoinPromoter(q_object.connector, len(q_object.children), current_negated)
for child in q_object.children:
child_clause, needed_inner = self.build_filter(…
child, can_reuse=used_aliases, branch_negated=branch_negated,
current_negated=current_negated, allow_joins=allow_joins,
split_subq=split_subq, check_filterable=check_filterable,
)
joinpromoter.add_votes(needed_inner)
if child_clause:
Variable | Value |
---|---|
allow_joins | True |
branch_negated | False |
check_filterable | True |
child | ('friendship__friends__user', <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7fa8208a0fd0>>) |
connector | 'AND' |
current_negated | False |
joinpromoter | <django.db.models.sql.query.JoinPromoter object at 0x7fa8208a0160> |
q_object | <Q: (AND: ('friendship__friends__user', <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7fa8208a0fd0>>))> |
self | <django.db.models.sql.query.Query object at 0x7fa8208a0ca0> |
split_subq | True |
target_clause | <WhereNode: (AND: )> |
used_aliases | set() |
/home/supervascainosv23/venv/supervascainosv23/lib/python3.8/site-packages/django/db/models/sql/query.py
, line 1343, in build_filter
parts, opts, alias, can_reuse=can_reuse, allow_many=allow_many,
reuse_with_filtered_relation=reuse_with_filtered_relation,
)
# Prevent iterator from being consumed by check_related_objects()
if isinstance(value, Iterator):
value = list(value)
self.check_related_objects(join_info.final_field, value, join_info.opts)…
# split_exclude() needs to know which joins were generated for the
# lookup parts
self._lookup_joins = join_info.joins
except MultiJoin as e:
return self.split_exclude(filter_expr, can_reuse, e.names_with_path)
Variable | Value |
---|---|
alias | 'auth_user' |
allow_joins | True |
allow_many | True |
arg | 'friendship__friends__user' |
branch_negated | False |
can_reuse | set() |
check_filterable | True |
clause | <WhereNode: (AND: )> |
current_negated | False |
filter_expr | ('friendship__friends__user', <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7fa8208a0fd0>>) |
join_info | JoinInfo(final_field=<django.db.models.fields.related.OneToOneField: user>, targets=(<django.db.models.fields.AutoField: id>,), opts=<Options for User>, joins=['auth_user', 'friends_friendship', 'friends_friendship_friends', 'T4', 'T5'], path=[PathInfo(from_opts=<Options for User>, to_opts=<Options for Friendship>, target_fields=(<django.db.models.fields.BigAutoField: id>,), join_field=<OneToOneRel: friends.friendship>, m2m=False, direct=False, filtered_relation=None), PathInfo(from_opts=<Options for Friendship>, to_opts=<Options for Friendship_friends>, target_fields=(<django.db.models.fields.BigAutoField: id>,), join_field=<ManyToOneRel: friends.friendship_friends>, m2m=True, direct=False, filtered_relation=None), PathInfo(from_opts=<Options for Friendship_friends>, to_opts=<Options for Friendship>, target_fields=(<django.db.models.fields.BigAutoField: id>,), join_field=<django.db.models.fields.related.ForeignKey: to_friendship>, m2m=False, direct=True, filtered_relation=None), PathInfo(from_opts=<Options for Friendship>, to_opts=<Options for User>, target_fields=(<django.db.models.fields.AutoField: id>,), join_field=<django.db.models.fields.related.OneToOneField: user>, m2m=False, direct=True, filtered_relation=None)], transform_function=<function Query.setup_joins.<locals>.final_transformer at 0x7fa82137b1f0>) |
lookups | [] |
opts | <Options for User> |
parts | ['friendship', 'friends', 'user'] |
pre_joins | {} |
reffed_expression | False |
reuse_with_filtered_relation | False |
self | <django.db.models.sql.query.Query object at 0x7fa8208a0ca0> |
split_subq | True |
used_joins | set() |
value | <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7fa8208a0fd0>> |
/home/supervascainosv23/venv/supervascainosv23/lib/python3.8/site-packages/django/db/models/sql/query.py
, line 1172, in check_related_objects
raise ValueError(
'Cannot use QuerySet for "%s": Use a QuerySet for "%s".' %
(value.model._meta.object_name, opts.object_name)
)
elif hasattr(value, '_meta'):
self.check_query_object_type(value, opts, field)
elif hasattr(value, '__iter__'):
for v in value:…
self.check_query_object_type(v, opts, field)
def check_filterable(self, expression):
"""Raise an error if expression cannot be used in a WHERE clause."""
if (
hasattr(expression, 'resolve_expression') and
Variable | Value |
---|---|
field | <django.db.models.fields.related.OneToOneField: user> |
opts | <Options for User> |
self | <django.db.models.sql.query.Query object at 0x7fa8208a0ca0> |
value | <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7fa8208a0fd0>> |
/home/supervascainosv23/venv/supervascainosv23/lib/python3.8/site-packages/django/utils/functional.py
, line 247, in inner
empty = object()
def new_method_proxy(func):
def inner(self, *args):
if self._wrapped is empty:
self._setup()
return func(self._wrapped, *args)…
return inner
class LazyObject:
"""
A wrapper for another class that can be used to delay instantiation of the
Variable | Value |
---|---|
args | () |
func | <built-in function iter> |
self | <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7fa8208a0fd0>> |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTP_ACCEPT | '*/*' |
HTTP_ACCEPT_ENCODING | 'gzip, br' |
HTTP_CDN_LOOP | 'cloudflare' |
HTTP_CF_CONNECTING_IP | '100.26.35.111' |
HTTP_CF_IPCOUNTRY | 'US' |
HTTP_CF_RAY | '86b70fbf0ad482da-EWR' |
HTTP_CF_VISITOR | '{"scheme":"https"}' |
HTTP_CONNECTION | 'close' |
HTTP_HOST | 'supervascainos.com' |
HTTP_REFERER | 'http://supervascainos.com/comments/' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '100.26.35.111, 172.70.115.4' |
HTTP_X_FORWARDED_PROTO | 'http' |
HTTP_X_REAL_IP | '172.70.115.4' |
PATH_INFO | '/comments/' |
QUERY_STRING | '' |
RAW_URI | '/comments/' |
REMOTE_ADDR | '' |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | '' |
SERVER_NAME | 'supervascainos.com' |
SERVER_PORT | '80' |
SERVER_PROTOCOL | 'HTTP/1.0' |
SERVER_SOFTWARE | 'gunicorn/20.1.0' |
gunicorn.socket | <socket.socket fd=9, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0, laddr=/run/supervascainosv23.sock> |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7fa821a72e20> |
wsgi.file_wrapper | <class 'gunicorn.http.wsgi.FileWrapper'> |
wsgi.input | <gunicorn.http.body.Body object at 0x7fa8208a0700> |
wsgi.input_terminated | True |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
svs.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ACCOUNT_ACTIVATION_DAYS | 1 |
ADMINS | [] |
ALLOWED_HOSTS | ['*'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ('django.contrib.auth.backends.ModelBackend', 'social.backends.EmailAuthBackend') |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | PosixPath('/home/supervascainosv23/application') |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.dummy.DummyCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CKEDITOR_CONFIGS | {'basic': {'allowedContent': True, 'entities': False, 'forcePasteAsPlainText': True, 'htmlEncodeOutput': False, 'toolbar': [['Source', '-', 'Bold', 'Italic', '-', 'RemoveFormat', '-', 'Link', 'Unlink', 'NumberedList', 'BulletedList', '-', 'Find', 'Replace', '-', 'Flash', 'Table', 'Image', 'Iframe']]}, 'ckeditor_blog': {'allowedContent': True, 'entities': False, 'forcePasteAsPlainText': True, 'htmlEncodeOutput': False, 'toolbar': [['Source', '-', 'Bold', 'Italic', '-', 'RemoveFormat', '-', 'Undo', 'Redo', '-', 'SelectAll']]}, 'default': {'allowedContent': True, 'entities': False, 'extraAllowedContent': ['iframe[]', 'h3', 'div[]', 'section[]'], 'forcePasteAsPlainText': True, 'htmlEncodeOutput': False, 'toolbar': [['Source', '-', 'Bold', 'Italic', '-', 'RemoveFormat', '-', 'Link', 'Unlink', 'NumberedList', 'BulletedList', '-', 'Find', 'Replace', '-', 'Table']]}, 'vk_ckeditor': {'allowedContent': True, 'entities': False, 'forcePasteAsPlainText': True, 'htmlEncodeOutput': False, 'toolbar': [['Source', '-', 'Bold', 'Italic', '-', 'RemoveFormat', '-', 'Link', 'Unlink', 'NumberedList', 'BulletedList', '-', 'Find', 'Replace', '-', 'Flash', 'Table', 'Image', 'Iframe']]}} |
CKEDITOR_IMAGE_BACKEND | 'pillow' |
CKEDITOR_JQUERY_URL | '//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js' |
CKEDITOR_UPLOAD_PATH | 'uploads/' |
COMPRESSORS | {'css': 'compressor.css.CssCompressor', 'js': 'compressor.js.JsCompressor'} |
COMPRESS_CACHEABLE_PRECOMPILERS | () |
COMPRESS_CACHE_BACKEND | 'default' |
COMPRESS_CACHE_KEY_FUNCTION | '********************' |
COMPRESS_CLEAN_CSS_ARGUMENTS | '' |
COMPRESS_CLEAN_CSS_BINARY | 'cleancss' |
COMPRESS_CLOSURE_COMPILER_ARGUMENTS | '' |
COMPRESS_CLOSURE_COMPILER_BINARY | 'java -jar compiler.jar' |
COMPRESS_CSS_FILTERS | ['compressor.filters.css_default.CssAbsoluteFilter', 'compressor.filters.cssmin.CSSMinFilter'] |
COMPRESS_CSS_HASHING_METHOD | 'mtime' |
COMPRESS_DATA_URI_MAX_SIZE | 1024 |
COMPRESS_DEBUG_TOGGLE | None |
COMPRESS_ENABLED | False |
COMPRESS_FILTERS | {'css': ['compressor.filters.css_default.CssAbsoluteFilter', 'compressor.filters.cssmin.rCSSMinFilter'], 'js': ['compressor.filters.jsmin.rJSMinFilter']} |
COMPRESS_JINJA2_GET_ENVIRONMENT | <function CompressorConf.JINJA2_GET_ENVIRONMENT at 0x7fa823df7c10> |
COMPRESS_MINT_DELAY | 30 |
COMPRESS_MTIME_DELAY | 10 |
COMPRESS_OFFLINE | False |
COMPRESS_OFFLINE_CONTEXT | {'STATIC_URL': '/static/'} |
COMPRESS_OFFLINE_MANIFEST | 'manifest.json' |
COMPRESS_OFFLINE_TIMEOUT | 31536000 |
COMPRESS_OUTPUT_DIR | 'CACHE' |
COMPRESS_PARSER | 'compressor.parser.AutoSelectParser' |
COMPRESS_PRECOMPILERS | () |
COMPRESS_REBUILD_TIMEOUT | 2592000 |
COMPRESS_ROOT | '/home/supervascainosv23/public_html/static' |
COMPRESS_STORAGE | 'compressor.storage.CompressorFileStorage' |
COMPRESS_TEMPLATE_FILTER_CONTEXT | {'STATIC_URL': '/static/'} |
COMPRESS_URL | '/static/' |
COMPRESS_URL_PLACEHOLDER | '/__compressor_url_placeholder__/' |
COMPRESS_VERBOSE | False |
COMPRESS_YUGLIFY_BINARY | 'yuglify' |
COMPRESS_YUGLIFY_CSS_ARGUMENTS | '--terminal' |
COMPRESS_YUGLIFY_JS_ARGUMENTS | '--terminal' |
COMPRESS_YUI_BINARY | 'java -jar yuicompressor.jar' |
COMPRESS_YUI_CSS_ARGUMENTS | '' |
COMPRESS_YUI_JS_ARGUMENTS | '' |
CORS_ORIGIN_ALLOW_ALL | True |
CORS_ORIGIN_WHITELIST | ['http://0.0.0.0', 'https://m.supervasco.com/*', 'https://m.supervasco.com', 'https://supervasco.com', 'https://www.supervasco.com', 'https://sv-app1.supervasco.com/', 'https://sv-app2.supervasco.com/', 'https://novo.supervascainos.com.br', 'https://*.supervascainos.com.br', 'https://*.supervascainos.com', 'https://supervascainos.com', 'https://staging.supervasco.com', 'http://localhost:7014', 'http://www.localhost:7014'] |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | True |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
CSRF_COOKIE_SAMESITE | 'None' |
CSRF_COOKIE_SECURE | True |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_HEADER_NAME | 'HTTP_X_CSRFTOKEN' |
CSRF_TRUSTED_ORIGINS | ['http://0.0.0.0', 'https://m.supervasco.com/*', 'https://m.supervasco.com', 'https://supervasco.com', 'https://www.supervasco.com', 'https://sv-app1.supervasco.com/', 'https://sv-app2.supervasco.com/', 'https://novo.supervascainos.com.br', 'https://*.supervascainos.com.br', 'https://*.supervascainos.com', 'https://supervascainos.com', 'https://staging.supervasco.com', 'http://localhost:7014', 'http://www.localhost:7014'] |
CSRF_USE_SESSIONS | False |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 600, 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'HOST': '157.230.14.75', 'NAME': 'svs_v23', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'svs_v23'}} |
DATABASE_ROUTERS | ['supervasco.router.SupervascoRouter'] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
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', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M'] |
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_AUTO_FIELD | 'django.db.models.BigAutoField' |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_EXCEPTION_REPORTER | 'django.views.debug.ExceptionReporter' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | 'Supervascaínos<[email protected]>' |
DEFAULT_HASHING_ALGORITHM | 'sha256' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'email-smtp.us-east-1.amazonaws.com' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | 'AKIAIBCAYZF22DP3QYTQ' |
EMAIL_PORT | '587' |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | '********************' |
EMAIL_SUBJECT_PREFIX | '[Supervascaínos] ' |
EMAIL_TIMEOUT | None |
EMAIL_USE_LOCALTIME | False |
EMAIL_USE_SSL | False |
EMAIL_USE_TLS | True |
EXCLUDE_FROM_MINIFYING | ['^admin/'] |
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 | 511 |
FILE_UPLOAD_TEMP_DIR | None |
FIRST_DAY_OF_WEEK | 0 |
FIXTURE_DIRS | [] |
FORCE_SCRIPT_NAME | None |
FORMAT_MODULE_PATH | None |
FORM_RENDERER | 'django.forms.renderers.DjangoTemplates' |
HAYSTACK_CONNECTIONS | {'default': {'ENGINE': 'elastic_engine.elasticsearch5_custom_backend.ElasticSearch5CustomEngine', 'INDEX_NAME': 'svs_v23', 'URL': 'http://157.230.14.75:9200/'}} |
HAYSTACK_SEARCH_RESULTS_PER_PAGE | 10 |
HTML_MINIFY | False |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['jet_sidebar', 'jet', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sites', 'django.contrib.flatpages', 'django.contrib.humanize', 'mptt', 'easy_thumbnails', 'easy_thumbnails.optimize', 'haystack', 'ckeditor', 'captcha', 'ckeditor_uploader', 'import_export', 'compressor', 'django_registration', 'django_countries', 'rest_framework', 'widget_tweaks', 'blog', 'flatpage', 'forum', 'friends', 'profiles', 'social', 'socialcomments', 'supervasco', 'website', 'widgets', 'registration'] |
INTERNAL_IPS | [] |
KEEP_COMMENTS_ON_MINIFYING | True |
LANGUAGES | [('af', 'Afrikaans'), ('ar', 'Arabic'), ('ar-dz', 'Algerian 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'), ('dsb', 'Lower Sorbian'), ('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'), ('hsb', 'Upper Sorbian'), ('hu', 'Hungarian'), ('hy', 'Armenian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('ig', 'Igbo'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kab', 'Kabyle'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('ky', 'Kyrgyz'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmål'), ('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'), ('tg', 'Tajik'), ('th', 'Thai'), ('tk', 'Turkmen'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('uz', 'Uzbek'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')] |
LANGUAGES_BIDI | ['he', 'ar', 'ar-dz', 'fa', 'ur'] |
LANGUAGE_CODE | 'pt-BR' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_HTTPONLY | False |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LANGUAGE_COOKIE_SAMESITE | None |
LANGUAGE_COOKIE_SECURE | False |
LOCALE_PATHS | [] |
LOGGING | {} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/login-redirect/' |
LOGIN_URL | '/login/' |
LOGOUT_REDIRECT_URL | None |
LOGOUT_URL | '/logout/' |
MANAGERS | [] |
MEDIA_ROOT | '/home/supervascainosv23/public_html/media/' |
MEDIA_URL | '/media/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.cookie.CookieStorage' |
MIDDLEWARE | ['htmlmin.middleware.HtmlMinifyMiddleware', 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'htmlmin.middleware.MarkRequestMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NOCAPTCHA | True |
NUMBER_GROUPING | 0 |
PAGINATION_SETTINGS | {'MARGIN_PAGES_DISPLAYED': 2, 'PAGE_RANGE_DISPLAYED': 10, 'SHOW_FIRST_PAGE_WHEN_INVALID': True} |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
RECAPTCHA_PRIVATE_KEY | '********************' |
RECAPTCHA_PUBLIC_KEY | '********************' |
ROOT_URLCONF | 'svs.urls' |
SECRET_KEY | '********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | True |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_REFERRER_POLICY | 'same-origin' |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | False |
SERVER_EMAIL | 'Supervascaínos<[email protected]>' |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_AGE | 1209600 |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_HTTPONLY | False |
SESSION_COOKIE_NAME | 'sessionid' |
SESSION_COOKIE_PATH | '/' |
SESSION_COOKIE_SAMESITE | 'None' |
SESSION_COOKIE_SECURE | True |
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 | 'svs.settings' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SID_APP_ICONS | {'auth': {'class_icon': 'fas fa-user-cog'}, 'blog': {'class_icon': 'fas fa-newspaper'}, 'flatpages': {'class_icon': 'fas fa-pager'}, 'forum': {'class_icon': 'fas fa-users'}, 'friends': {'class_icon': 'fas fa-user-friends'}, 'profiles': {'class_icon': 'fas fa-users'}, 'sites': {'class_icon': 'fas fa-link'}, 'social': {'class_icon': 'fas fa-people-arrows'}, 'socialcomments': {'class_icon': 'fas fa-comments'}} |
SID_TITLE_MENU | False |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
SITE_ID | 1 |
STATICFILES_DIRS | ['/home/supervascainosv23/application/static'] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', 'compressor.finders.CompressorFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/home/supervascainosv23/public_html/static/' |
STATIC_URL | '/static/' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/home/supervascainosv23/application/templates'], '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', 'app.blog.context_processors.url_blog'], 'debug': True}}] |
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 | 'America/Fortaleza' |
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 | 'svs.wsgi.application' |
X_FRAME_OPTIONS | 'ALLOWALL' |
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.