Site matching query does not exist.
Request Method: | GET |
---|---|
Request URL: | http://127.0.0.1:8000/admin/login/?next=/admin/ |
Django Version: | 2.1.7 |
Exception Type: | DoesNotExist |
Exception Value: | Site matching query does not exist. |
Exception Location: | /usr/local/lib/python3.7/site-packages/django/db/models/query.py in get, line 399 |
Python Executable: | /usr/local/bin/python3 |
Python Version: | 3.7.3 |
Python Path: | ['/usr/src/dictionary', '/usr/local/lib/python37.zip', '/usr/local/lib/python3.7', '/usr/local/lib/python3.7/lib-dynload', '/usr/local/lib/python3.7/site-packages'] |
Server time: | Thu, 28 Mar 2024 09:05:14 +0000 |
/usr/local/lib/python3.7/site-packages/django/contrib/sites/models.py
in _get_site_by_request
return SITE_CACHE[site_id]
def _get_site_by_request(self, request):
host = request.get_host()
try:
# First attempt to look up the site by host with or without port.
if host not in SITE_CACHE:
SITE_CACHE[host] = self.get(domain__iexact=host)...
return SITE_CACHE[host]
except Site.DoesNotExist:
# Fallback to looking up site after stripping port from the host.
domain, port = split_domain_port(host)
if domain not in SITE_CACHE:
SITE_CACHE[domain] = self.get(domain__iexact=domain)
Variable | Value |
---|---|
domain | '127.0.0.1' |
host | '127.0.0.1:8000' |
port | '8000' |
request | <WSGIRequest: GET '/admin/login/?next=/admin/'> |
self | <django.contrib.sites.models.SiteManager object at 0x7fd42deca2e8> |
/usr/local/lib/python3.7/site-packages/django/db/models/manager.py
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 | {'domain__iexact': '127.0.0.1:8000'} |
name | 'get' |
self | <django.contrib.sites.models.SiteManager object at 0x7fd42deca2e8> |
/usr/local/lib/python3.7/site-packages/django/db/models/query.py
in get
clone = clone.order_by()
num = len(clone)
if num == 1:
return clone._result_cache[0]
if not num:
raise self.model.DoesNotExist(
"%s matching query does not exist." %
self.model._meta.object_name...
)
raise self.model.MultipleObjectsReturned(
"get() returned more than one %s -- it returned %s!" %
(self.model._meta.object_name, num)
)
Variable | Value |
---|---|
args | () |
clone | <QuerySet []> |
kwargs | {'domain__iexact': '127.0.0.1:8000'} |
num | 0 |
self | <QuerySet [<Site: example.com>]> |
/usr/local/lib/python3.7/site-packages/django/core/handlers/exception.py
in inner
This decorator is automatically applied to all middleware to ensure that
no middleware leaks an exception and that the next middleware in the stack
can rely on getting a response instead of an exception.
"""
@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 | DoesNotExist('Site matching query does not exist.') |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7fd449fbd6a0>> |
request | <WSGIRequest: GET '/admin/login/?next=/admin/'> |
/usr/local/lib/python3.7/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 |
---|---|
callback | <bound method AdminSite.login of <django.contrib.admin.sites.AdminSite object at 0x7fd44689d7b8>> |
callback_args | () |
callback_kwargs | {} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7fd449fa2668>> |
request | <WSGIRequest: GET '/admin/login/?next=/admin/'> |
resolver | <URLResolver 'dictionary.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=django.contrib.admin.sites.login, args=(), kwargs={}, url_name=login, app_names=['admin'], namespaces=['admin']) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7fd449fbd6a0> |
wrapped_callback | <bound method AdminSite.login of <django.contrib.admin.sites.AdminSite object at 0x7fd44689d7b8>> |
/usr/local/lib/python3.7/site-packages/django/core/handlers/base.py
in _get_response
response = middleware_method(request, callback, callback_args, callback_kwargs)
if response:
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)...
except Exception as e:
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 |
---|---|
callback | <bound method AdminSite.login of <django.contrib.admin.sites.AdminSite object at 0x7fd44689d7b8>> |
callback_args | () |
callback_kwargs | {} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7fd449fa2668>> |
request | <WSGIRequest: GET '/admin/login/?next=/admin/'> |
resolver | <URLResolver 'dictionary.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=django.contrib.admin.sites.login, args=(), kwargs={}, url_name=login, app_names=['admin'], namespaces=['admin']) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7fd449fbd6a0> |
wrapped_callback | <bound method AdminSite.login of <django.contrib.admin.sites.AdminSite object at 0x7fd44689d7b8>> |
/usr/local/lib/python3.7/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)
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 |
---|---|
args | (<WSGIRequest: GET '/admin/login/?next=/admin/'>,) |
kwargs | {} |
request | <django.contrib.admin.sites.AdminSite object at 0x7fd44689d7b8> |
view_func | <function AdminSite.login at 0x7fd449e7c7b8> |
/usr/local/lib/python3.7/site-packages/django/contrib/admin/sites.py
in login
defaults = {
'extra_context': context,
'authentication_form': self.login_form or AdminAuthenticationForm,
'template_name': self.login_template or 'admin/login.html',
}
request.current_app = self.name
return LoginView.as_view(**defaults)(request)...
def _build_app_dict(self, request, label=None):
"""
Build the app dictionary. The optional `label` parameter filters models
of a specific app.
"""
Variable | Value |
---|---|
AdminAuthenticationForm | <class 'django.contrib.admin.forms.AdminAuthenticationForm'> |
LoginView | <class 'django.contrib.auth.views.LoginView'> |
context | {'app_path': '/admin/login/?next=/admin/', 'available_apps': [], 'has_permission': False, 'site_header': 'Django administration', 'site_title': 'Django site admin', 'site_url': '/', 'title': 'Log in', 'username': ''} |
defaults | {'authentication_form': <class 'django.contrib.admin.forms.AdminAuthenticationForm'>, 'extra_context': {'app_path': '/admin/login/?next=/admin/', 'available_apps': [], 'has_permission': False, 'site_header': 'Django administration', 'site_title': 'Django site admin', 'site_url': '/', 'title': 'Log in', 'username': ''}, 'template_name': 'admin/login.html'} |
extra_context | None |
request | <WSGIRequest: GET '/admin/login/?next=/admin/'> |
self | <django.contrib.admin.sites.AdminSite object at 0x7fd44689d7b8> |
/usr/local/lib/python3.7/site-packages/django/views/generic/base.py
in view
def view(request, *args, **kwargs):
self = cls(**initkwargs)
if hasattr(self, 'get') and not hasattr(self, 'head'):
self.head = self.get
self.request = request
self.args = args
self.kwargs = kwargs
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 'django.contrib.auth.views.LoginView'> |
initkwargs | {'authentication_form': <class 'django.contrib.admin.forms.AdminAuthenticationForm'>, 'extra_context': {'app_path': '/admin/login/?next=/admin/', 'available_apps': [], 'has_permission': False, 'site_header': 'Django administration', 'site_title': 'Django site admin', 'site_url': '/', 'title': 'Log in', 'username': ''}, 'template_name': 'admin/login.html'} |
kwargs | {} |
request | <WSGIRequest: GET '/admin/login/?next=/admin/'> |
self | <django.contrib.auth.views.LoginView object at 0x7fd43d9f1e80> |
/usr/local/lib/python3.7/site-packages/django/utils/decorators.py
in _wrapper
# bound_method has the signature that 'decorator' expects i.e. no
# 'self' argument, but it's a closure over self so it can call
# 'func'. Also, wrap method.__get__() in a function because new
# attributes can't be set on bound method objects, only on functions.
bound_method = partial(method.__get__(self, type(self)))
for dec in decorators:
bound_method = dec(bound_method)
return bound_method(*args, **kwargs)...
# Copy any attributes that a decorator adds to the function it decorates.
for dec in decorators:
_update_method_wrapper(_wrapper, dec)
# Preserve any existing attributes of 'method', including the name.
update_wrapper(_wrapper, method)
Variable | Value |
---|---|
args | (<WSGIRequest: GET '/admin/login/?next=/admin/'>,) |
bound_method | <function sensitive_post_parameters.<locals>.decorator.<locals>.sensitive_post_parameters_wrapper at 0x7fd41cbed268> |
dec | <function sensitive_post_parameters.<locals>.decorator at 0x7fd42c6256a8> |
decorators | [<function sensitive_post_parameters.<locals>.decorator at 0x7fd42c6256a8>] |
kwargs | {} |
method | <function LoginView.dispatch at 0x7fd42c625ae8> |
self | <django.contrib.auth.views.LoginView object at 0x7fd43d9f1e80> |
/usr/local/lib/python3.7/site-packages/django/views/decorators/debug.py
in sensitive_post_parameters_wrapper
"If you are decorating a classmethod, be sure to use "
"@method_decorator."
)
if parameters:
request.sensitive_post_parameters = parameters
else:
request.sensitive_post_parameters = '__ALL__'
return view(request, *args, **kwargs)...
return sensitive_post_parameters_wrapper
return decorator
Variable | Value |
---|---|
args | () |
kwargs | {} |
parameters | () |
request | <WSGIRequest: GET '/admin/login/?next=/admin/'> |
view | functools.partial(<bound method LoginView.dispatch of <django.contrib.auth.views.LoginView object at 0x7fd43d9f1e80>>) |
/usr/local/lib/python3.7/site-packages/django/utils/decorators.py
in _wrapper
# bound_method has the signature that 'decorator' expects i.e. no
# 'self' argument, but it's a closure over self so it can call
# 'func'. Also, wrap method.__get__() in a function because new
# attributes can't be set on bound method objects, only on functions.
bound_method = partial(method.__get__(self, type(self)))
for dec in decorators:
bound_method = dec(bound_method)
return bound_method(*args, **kwargs)...
# Copy any attributes that a decorator adds to the function it decorates.
for dec in decorators:
_update_method_wrapper(_wrapper, dec)
# Preserve any existing attributes of 'method', including the name.
update_wrapper(_wrapper, method)
Variable | Value |
---|---|
args | (<WSGIRequest: GET '/admin/login/?next=/admin/'>,) |
bound_method | <function make_middleware_decorator.<locals>._make_decorator.<locals>._decorator.<locals>._wrapped_view at 0x7fd41cbed620> |
dec | <function make_middleware_decorator.<locals>._make_decorator.<locals>._decorator at 0x7fd449e460d0> |
decorators | [<function make_middleware_decorator.<locals>._make_decorator.<locals>._decorator at 0x7fd449e460d0>] |
kwargs | {} |
method | <function LoginView.dispatch at 0x7fd42c6259d8> |
self | <django.contrib.auth.views.LoginView object at 0x7fd43d9f1e80> |
/usr/local/lib/python3.7/site-packages/django/utils/decorators.py
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.csrf.CsrfViewMiddleware object at 0x7fd449eb7128> |
request | <WSGIRequest: GET '/admin/login/?next=/admin/'> |
result | None |
view_func | functools.partial(<bound method LoginView.dispatch of <django.contrib.auth.views.LoginView object at 0x7fd43d9f1e80>>) |
/usr/local/lib/python3.7/site-packages/django/utils/decorators.py
in _wrapper
# bound_method has the signature that 'decorator' expects i.e. no
# 'self' argument, but it's a closure over self so it can call
# 'func'. Also, wrap method.__get__() in a function because new
# attributes can't be set on bound method objects, only on functions.
bound_method = partial(method.__get__(self, type(self)))
for dec in decorators:
bound_method = dec(bound_method)
return bound_method(*args, **kwargs)...
# Copy any attributes that a decorator adds to the function it decorates.
for dec in decorators:
_update_method_wrapper(_wrapper, dec)
# Preserve any existing attributes of 'method', including the name.
update_wrapper(_wrapper, method)
Variable | Value |
---|---|
args | (<WSGIRequest: GET '/admin/login/?next=/admin/'>,) |
bound_method | <function never_cache.<locals>._wrapped_view_func at 0x7fd41cbedd08> |
dec | <function never_cache at 0x7fd449e51d90> |
decorators | [<function never_cache at 0x7fd449e51d90>] |
kwargs | {} |
method | <function LoginView.dispatch at 0x7fd42c6258c8> |
self | <django.contrib.auth.views.LoginView object at 0x7fd43d9f1e80> |
/usr/local/lib/python3.7/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)
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 |
---|---|
args | () |
kwargs | {} |
request | <WSGIRequest: GET '/admin/login/?next=/admin/'> |
view_func | functools.partial(<bound method LoginView.dispatch of <django.contrib.auth.views.LoginView object at 0x7fd43d9f1e80>>) |
/usr/local/lib/python3.7/site-packages/django/contrib/auth/views.py
in dispatch
redirect_to = self.get_success_url()
if redirect_to == self.request.path:
raise ValueError(
"Redirection loop for authenticated user detected. Check that "
"your LOGIN_REDIRECT_URL doesn't point to a login page."
)
return HttpResponseRedirect(redirect_to)
return super().dispatch(request, *args, **kwargs)...
def get_success_url(self):
url = self.get_redirect_url()
return url or resolve_url(settings.LOGIN_REDIRECT_URL)
def get_redirect_url(self):
Variable | Value |
---|---|
__class__ | <class 'django.contrib.auth.views.LoginView'> |
args | () |
kwargs | {} |
request | <WSGIRequest: GET '/admin/login/?next=/admin/'> |
self | <django.contrib.auth.views.LoginView object at 0x7fd43d9f1e80> |
/usr/local/lib/python3.7/site-packages/django/views/generic/base.py
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 ProcessFormView.get of <django.contrib.auth.views.LoginView object at 0x7fd43d9f1e80>> |
kwargs | {} |
request | <WSGIRequest: GET '/admin/login/?next=/admin/'> |
self | <django.contrib.auth.views.LoginView object at 0x7fd43d9f1e80> |
/usr/local/lib/python3.7/site-packages/django/views/generic/edit.py
in get
return super().form_valid(form)
class ProcessFormView(View):
"""Render a form on GET and processes it on POST."""
def get(self, request, *args, **kwargs):
"""Handle GET requests: instantiate a blank version of the form."""
return self.render_to_response(self.get_context_data())...
def post(self, request, *args, **kwargs):
"""
Handle POST requests: instantiate a form instance with the passed
POST variables and then check if it's valid.
"""
Variable | Value |
---|---|
args | () |
kwargs | {} |
request | <WSGIRequest: GET '/admin/login/?next=/admin/'> |
self | <django.contrib.auth.views.LoginView object at 0x7fd43d9f1e80> |
/usr/local/lib/python3.7/site-packages/django/contrib/auth/views.py
in get_context_data
def form_valid(self, form):
"""Security check complete. Log the user in."""
auth_login(self.request, form.get_user())
return HttpResponseRedirect(self.get_success_url())
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
current_site = get_current_site(self.request)...
context.update({
self.redirect_field_name: self.get_redirect_url(),
'site': current_site,
'site_name': current_site.name,
**(self.extra_context or {})
})
Variable | Value |
---|---|
__class__ | <class 'django.contrib.auth.views.LoginView'> |
context | {'app_path': '/admin/login/?next=/admin/', 'available_apps': [], 'form': <AdminAuthenticationForm bound=False, valid=Unknown, fields=(username;password)>, 'has_permission': False, 'site_header': 'Django administration', 'site_title': 'Django site admin', 'site_url': '/', 'title': 'Log in', 'username': '', 'view': <django.contrib.auth.views.LoginView object at 0x7fd43d9f1e80>} |
kwargs | {} |
self | <django.contrib.auth.views.LoginView object at 0x7fd43d9f1e80> |
/usr/local/lib/python3.7/site-packages/django/contrib/sites/shortcuts.py
in get_current_site
Check if contrib.sites is installed and return either the current
``Site`` object or a ``RequestSite`` object based on the request.
"""
# Imports are inside the function because its point is to avoid importing
# the Site models when django.contrib.sites isn't installed.
if apps.is_installed('django.contrib.sites'):
from .models import Site
return Site.objects.get_current(request)...
else:
from .requests import RequestSite
return RequestSite(request)
Variable | Value |
---|---|
Site | <class 'django.contrib.sites.models.Site'> |
request | <WSGIRequest: GET '/admin/login/?next=/admin/'> |
/usr/local/lib/python3.7/site-packages/django/contrib/sites/models.py
in get_current
retrieved from the database.
"""
from django.conf import settings
if getattr(settings, 'SITE_ID', ''):
site_id = settings.SITE_ID
return self._get_site_by_id(site_id)
elif request:
return self._get_site_by_request(request)...
raise ImproperlyConfigured(
"You're using the Django \"sites framework\" without having "
"set the SITE_ID setting. Create a site in your database and "
"set the SITE_ID setting or pass a request to "
"Site.objects.get_current() to fix this error."
Variable | Value |
---|---|
request | <WSGIRequest: GET '/admin/login/?next=/admin/'> |
self | <django.contrib.sites.models.SiteManager object at 0x7fd42deca2e8> |
settings | <LazySettings "dictionary.settings"> |
/usr/local/lib/python3.7/site-packages/django/contrib/sites/models.py
in _get_site_by_request
if host not in SITE_CACHE:
SITE_CACHE[host] = self.get(domain__iexact=host)
return SITE_CACHE[host]
except Site.DoesNotExist:
# Fallback to looking up site after stripping port from the host.
domain, port = split_domain_port(host)
if domain not in SITE_CACHE:
SITE_CACHE[domain] = self.get(domain__iexact=domain)...
return SITE_CACHE[domain]
def get_current(self, request=None):
"""
Return the current Site based on the SITE_ID in the project's settings.
If SITE_ID isn't defined, return the site with domain matching
Variable | Value |
---|---|
domain | '127.0.0.1' |
host | '127.0.0.1:8000' |
port | '8000' |
request | <WSGIRequest: GET '/admin/login/?next=/admin/'> |
self | <django.contrib.sites.models.SiteManager object at 0x7fd42deca2e8> |
/usr/local/lib/python3.7/site-packages/django/db/models/manager.py
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 | {'domain__iexact': '127.0.0.1'} |
name | 'get' |
self | <django.contrib.sites.models.SiteManager object at 0x7fd42deca2e8> |
/usr/local/lib/python3.7/site-packages/django/db/models/query.py
in get
clone = clone.order_by()
num = len(clone)
if num == 1:
return clone._result_cache[0]
if not num:
raise self.model.DoesNotExist(
"%s matching query does not exist." %
self.model._meta.object_name...
)
raise self.model.MultipleObjectsReturned(
"get() returned more than one %s -- it returned %s!" %
(self.model._meta.object_name, num)
)
Variable | Value |
---|---|
args | () |
clone | <QuerySet []> |
kwargs | {'domain__iexact': '127.0.0.1'} |
num | 0 |
self | <QuerySet [<Site: example.com>]> |
AnonymousUser
Variable | Value |
---|---|
next | '/admin/' |
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
AWS_ACCESS_KEY_ID | 'AKIARB4KCGZCGSGG65BV' |
AWS_LOCATION | 'static' |
AWS_SECRET_ACCESS_KEY | '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' |
AWS_STORAGE_BUCKET_NAME | 'bim-new-s3' |
CDN_DOMAIN | 'cdn.bimdictionary.com' |
CONTENT_LENGTH | '' |
CONTENT_TYPE | 'text/plain' |
DB_DATABASE | 'postgres' |
DB_HOST | 'bim-new-backup.cm6eb45hdshs.ap-southeast-2.rds.amazonaws.com' |
DB_PASSWORD | 'NThJ5rqL' |
DB_PORT | '5432' |
DB_USER | 'postgres' |
DJANGO_SETTINGS_MODULE | 'dictionary.settings' |
EMAIL_HOST | 'smtp.mailgun.org' |
EMAIL_HOST_PASSWORD | '16386ade6ce3e30046fb69a00b25a127-8b34de1b-d9508bbe' |
EMAIL_HOST_USER | 'postmaster@mailgun.bimexcellence.org' |
EMAIL_PORT | '587' |
FACEBOOK_APP_ID | '689086538186030' |
FACEBOOK_APP_SECRET | 'd0ea7e24f5b9d7c13e53b7a8ad8ac4c2' |
GATEWAY_INTERFACE | 'CGI/1.1' |
GOOGLE_ID | '707060328933-8ap35lbeaskk2o3fa90lqgiol5m3c5sb.apps.googleusercontent.com' |
GPG_KEY | '0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D' |
HOME | '/root' |
HOST | 'https://bimdictionary.com' |
HOSTNAME | '6bbac94f8c87' |
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'Keep-Alive' |
HTTP_HOST | '127.0.0.1:8000' |
HTTP_REFERER | 'https://bimdictionary.com/admin/' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '54.81.157.133' |
HTTP_X_FORWARDED_HOST | 'bimdictionary.com' |
HTTP_X_FORWARDED_SERVER | 'new.bimdictionary.com' |
LANG | 'C.UTF-8' |
LINKEDIN_ID | '812wy574yn2xoo' |
LINKEDIN_SECRET | 'OExmgmLZlTb3BuMH' |
MODE | 'production' |
MYSQL_HOST | 'db' |
PATH | '/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' |
PATH_INFO | '/admin/login/' |
PGASSWORD | 'root' |
PGDATABASE | 'postgres' |
PGHOST | 'postgres' |
PGUSER | 'postgres' |
PYTHON_PIP_VERSION | '19.1.1' |
PYTHON_VERSION | '3.7.3' |
QUERY_STRING | 'next=/admin/' |
REMOTE_ADDR | '172.18.0.1' |
REMOTE_HOST | '' |
REQUEST_METHOD | 'GET' |
RUN_MAIN | 'true' |
SCRIPT_NAME | '' |
SERVER_NAME | '6bbac94f8c87' |
SERVER_PORT | '8000' |
SERVER_PROTOCOL | 'HTTP/1.1' |
SERVER_SOFTWARE | 'WSGIServer/0.2' |
TZ | 'UTC' |
wsgi.errors | <_io.TextIOWrapper name='<stderr>' mode='w' encoding='UTF-8'> |
wsgi.file_wrapper | '' |
wsgi.input | <django.core.handlers.wsgi.LimitedStream object at 0x7fd43d9dc240> |
wsgi.multiprocess | False |
wsgi.multithread | True |
wsgi.run_once | False |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
dictionary.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALLOWED_HOSTS | ['127.0.0.1', 'localhost', 'bimdictionary.com', 'bimdictionary.com:8000'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ('core.backends.CaseInsensitiveModelBackend',) |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'user.User' |
AWS_ACCESS_KEY_ID | '********************' |
AWS_LOCATION | 'static' |
AWS_S3_CUSTOM_DOMAIN | 'bim-new-s3.s3.amazonaws.com' |
AWS_SECRET_ACCESS_KEY | '********************' |
AWS_STORAGE_BUCKET_NAME | 'bim-new-s3' |
BASE_DIR | '/usr/src/dictionary' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CDN_DOMAIN | 'cdn.bimdictionary.com' |
CORS_ALLOW_CREDENTIALS | True |
CORS_ORIGIN_ALLOW_ALL | True |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
CSRF_COOKIE_SAMESITE | 'Lax' |
CSRF_COOKIE_SECURE | False |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_HEADER_NAME | 'HTTP_X_CSRFTOKEN' |
CSRF_TRUSTED_ORIGINS | [] |
CSRF_USE_SESSIONS | False |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'HOST': 'bim-new-backup.cm6eb45hdshs.ap-southeast-2.rds.amazonaws.com', 'NAME': 'postgres', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '5432', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'postgres'}, 'sqlite': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.sqlite3', 'HOST': '', 'NAME': '/usr/src/dictionary/db.sqlite3', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': ''}} |
DATABASE_ROUTERS | [] |
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', '%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 | 'dictionary.storage_backends.MediaStorage' |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
DOCUMENT | 2 |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'smtp.mailgun.org' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | 'postmaster@mailgun.bimexcellence.org' |
EMAIL_PORT | '587' |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | '********************' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
EMAIL_TIMEOUT | None |
EMAIL_USE_LOCALTIME | False |
EMAIL_USE_SSL | False |
EMAIL_USE_TLS | True |
FACEBOOK_APP_ID | '689086538186030' |
FACEBOOK_APP_SECRET | '********************' |
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 |
FORM_RENDERER | 'django.forms.renderers.DjangoTemplates' |
GOOGLE_CLIENT_ID | '707060328933-8ap35lbeaskk2o3fa90lqgiol5m3c5sb.apps.googleusercontent.com' |
HOST | 'https://bimdictionary.com' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sites', 'django.contrib.postgres', 'polymorphic', 'storages', 'django_seed', 'webpack_loader', 'rest_framework', 'core', 'term', 'user', 'management_console', 'editor', 'reviewer', 'author', 'labels', 'logger', 'notification', 'corsheaders'] |
INTERNAL_IPS | [] |
JWT_AUTH | {'JWT_EXPIRATION_DELTA': datetime.timedelta(days=2)} |
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'), ('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'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kab', 'Kabyle'), ('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 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'), ('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 | '/' |
LINKEDIN_ID | '812wy574yn2xoo' |
LINKEDIN_SECRET | '********************' |
LIST | 0 |
LOCALE_PATHS | [] |
LOGGING | {} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MAX_AVATAR_HEIGHT | 600 |
MAX_AVATAR_SIZE | 4194304 |
MAX_AVATAR_WIDTH | 600 |
MAX_FAVOURITE_TERMS_COUNT | 100 |
MEDIA_ROOT | '/usr/src/dictionary/core/static/media' |
MEDIA_URL | '' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['corsheaders.middleware.CorsMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PAGE | 1 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
REST_FRAMEWORK | {'DEFAULT_AUTHENTICATION_CLASSES': ('rest_framework_simplejwt.authentication.JWTAuthentication',), 'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAuthenticated',)} |
ROOT_URLCONF | 'dictionary.urls' |
SECRET_KEY | '********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | False |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | 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_SAMESITE | 'Lax' |
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 | 'dictionary.settings' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
SIMPLE_JWT | {'ACCESS_TOKEN_LIFETIME': '********************', 'REFRESH_TOKEN_LIFETIME': '********************', 'SLIDING_TOKEN_LIFETIME': '********************', 'SLIDING_TOKEN_REFRESH_LIFETIME': '********************'} |
STATICFILES_DIR | '/usr/src/dictionary/static' |
STATICFILES_DIRS | [] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'storages.backends.s3boto3.S3Boto3Storage' |
STATIC_DIRS | '/usr/src/dictionary/static' |
STATIC_ROOT | '/usr/src/dictionary/static' |
STATIC_URL | 'https://cdn.bimdictionary.com/static/' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/usr/src/dictionary/dictionary/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']}}] |
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' |
TYPES | [(0, 'List'), (1, 'Paper'), (2, 'Document')] |
USE_I18N | True |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | True |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WEBPACK_LOADER | {'DEFAULT': {'BUNDLE_DIR_NAME': '/usr/src/dictionary/dictionary/static', 'STATS_FILE': '/usr/src/dictionary/dictionary/../client/webpack-stats.json'}} |
WSGI_APPLICATION | 'dictionary.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.