ОШИБКА (ВНЕШНИЙ IP): Внутренняя ошибка сервера: /login/
Мой проект хорошо работает в разработке, но при запуске в производство выдает ошибку. Я подозреваю, что это настройки django cacheops, которые были применены... Вот трассировка
Traceback (most recent call last):
File "/workspace/.heroku/python/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/workspace/.heroku/python/lib/python3.9/site-packages/django/core/handlers/base.py", line 204, in _get_response
response = response.render()
File "/workspace/.heroku/python/lib/python3.9/site-packages/django/template/response.py", line 105, in render
self.content = self.rendered_content
File "/workspace/.heroku/python/lib/python3.9/site-packages/sentry_sdk/integrations/django/templates.py", line 73, in rendered_content
return real_rendered_content.fget(self)
File "/workspace/.heroku/python/lib/python3.9/site-packages/django/template/response.py", line 83, in rendered_content
return template.render(context, self._request)
File "/workspace/.heroku/python/lib/python3.9/site-packages/django/template/backends/django.py", line 61, in render
return self.template.render(context)
File "/workspace/.heroku/python/lib/python3.9/site-packages/django/template/base.py", line 168, in render
with context.bind_template(self):
File "/workspace/.heroku/python/lib/python3.9/contextlib.py", line 117, in __enter__
return next(self.gen)
File "/workspace/.heroku/python/lib/python3.9/site-packages/debug_toolbar/panels/templates/panel.py", line 48, in _request_context_bind_template
updates.update(context)
DEBUG_TOOLBAR_CONFIG = {'SHOW_TOOLBAR_CALLBACK': 'library.settings.show_toolbar',
'SHOW_TEMPLATE_CONTEXT': True,
'ENABLE_STACKTRACES': True,
}
CACHEOPS_DEGRADE_ON_FAILURE=True
CACHEOPS_ENABLED = True
CACHEOPS_REDIS = {
'host': 'localhost',
'port': 6379,
#'db': 1,
}
CACHEOPS_DEFAULTS = {'timeout': 60*60}
CACHEOPS = {'libman.*': {'ops':'all'},}
CACHES = {
"default": {
"BACKEND": "django_redis.cache.RedisCache",
"LOCATION": "redis://127.0.0.1:6379/1",
"OPTIONS": {
"CLIENT_CLASS": "django_redis.client.DefaultClient",
}
},
'select2': {
"BACKEND": "django_redis.cache.RedisCache",
"LOCATION": "redis://127.0.0.1:6379/2",
"OPTIONS": {
"CLIENT_CLASS": "django_redis.client.DefaultClient",
}
}
}
SELECT2_CACHE_BACKEND = 'select2'
INTERNAL_IPS = [
# ...
"127.0.0.1",
# ...
]
Причина, по которой я говорю, что это cacheops, заключается в том, что когда я хэширую это, это работает
CACHEOPS_DEGRADE_ON_FAILURE=True
Помогите, пожалуйста, кто может...