django-server-errors 1.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,212 @@
1
+ Metadata-Version: 2.4
2
+ Name: django-server-errors
3
+ Version: 1.0.0
4
+ Summary: Server errors of a Django site, grouped and triaged in the Django admin
5
+ Author-email: Andrey Novikov <novikov@gmail.com>
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/andreynovikov/django-server-errors
8
+ Project-URL: Repository, https://github.com/andreynovikov/django-server-errors.git
9
+ Project-URL: Issues, https://github.com/andreynovikov/django-server-errors/issues
10
+ Project-URL: Releases, https://github.com/andreynovikov/django-server-errors/releases
11
+ Keywords: django,admin,errors,exceptions,error tracking,celery
12
+ Classifier: Development Status :: 5 - Production/Stable
13
+ Classifier: Environment :: Web Environment
14
+ Classifier: Framework :: Django
15
+ Classifier: Framework :: Django :: 5.2
16
+ Classifier: Framework :: Django :: 6.0
17
+ Classifier: Framework :: Django :: 6.1
18
+ Classifier: Intended Audience :: Developers
19
+ Classifier: Intended Audience :: System Administrators
20
+ Classifier: Natural Language :: English
21
+ Classifier: Natural Language :: Russian
22
+ Classifier: Operating System :: OS Independent
23
+ Classifier: Programming Language :: Python
24
+ Classifier: Programming Language :: Python :: 3
25
+ Classifier: Programming Language :: Python :: 3 :: Only
26
+ Classifier: Programming Language :: Python :: 3.11
27
+ Classifier: Programming Language :: Python :: 3.12
28
+ Classifier: Programming Language :: Python :: 3.13
29
+ Classifier: Programming Language :: Python :: 3.14
30
+ Classifier: Programming Language :: Python :: 3.15
31
+ Classifier: Topic :: Internet :: WWW/HTTP
32
+ Classifier: Topic :: System :: Monitoring
33
+ Requires-Python: >=3.11
34
+ Description-Content-Type: text/markdown
35
+ License-File: LICENSE
36
+ Requires-Dist: Django>=5.2
37
+ Dynamic: license-file
38
+
39
+ # Server errors in the Django admin
40
+
41
+ [![Test status](https://github.com/andreynovikov/django-server-errors/actions/workflows/test.yaml/badge.svg)](https://github.com/andreynovikov/django-server-errors/actions/workflows/test.yaml)
42
+ [![GitHub release](https://img.shields.io/github/release/andreynovikov/django-server-errors.svg)](https://github.com/andreynovikov/django-server-errors/releases/latest)
43
+ [![PyPI release](https://img.shields.io/pypi/v/django-server-errors.svg)](https://pypi.org/project/django-server-errors/)
44
+ [![Python version](https://img.shields.io/pypi/pyversions/django-server-errors.svg)](https://pypi.org/project/django-server-errors/)
45
+ [![Django version](https://img.shields.io/pypi/frameworkversions/django/django-server-errors.svg)](https://pypi.org/project/django-server-errors/)
46
+ [![GitHub issues](https://img.shields.io/github/issues/andreynovikov/django-server-errors.svg)](https://github.com/andreynovikov/django-server-errors/issues)
47
+ [![GitHub license](https://img.shields.io/github/license/andreynovikov/django-server-errors.svg)](LICENSE)
48
+
49
+ Server errors of a Django site, grouped and triaged in the Django admin.
50
+
51
+ The `errors` app collects every response with a 5xx status and every Celery task that fails. It groups repeats of the same error, so the admin shows one row per problem instead of one per occurrence. Each row has its occurrence count, frequency and a severity that administrators set. The app has no URLs or API of its own; it is visible only in the Django admin. It needs no external service: errors are stored in the site's own database.
52
+
53
+ ## Features
54
+
55
+ - **Collection.** One middleware records each response with a 5xx status:
56
+ - exceptions raised in views or in other middleware;
57
+ - 5xx responses that had no exception, such as a Django REST framework `APIException` or a view returning 503.
58
+
59
+ When Celery is installed, tasks that fail for good are recorded too. Retries are not counted.
60
+ - **Grouping.** Occurrences belong to one error when all of these match:
61
+ - the exception class;
62
+ - the source: the HTTP method with the URL name (`GET product-detail`), or the task name;
63
+ - the place in your code: the innermost frame outside the standard library and installed packages, by file and function, without the line number.
64
+
65
+ Messages, parameters, line numbers and the rest of the stack may differ.
66
+ - **Admin.** The list is sorted by the time an error was last seen, newest first. Each error shows:
67
+ - name and latest message, source and location in code;
68
+ - first and last seen, count, and frequency per day;
69
+ - severity (low, medium, high, critical), editable in the list.
70
+ - **Traces.** The latest occurrences of each error are kept with the request or task context and the full stack. The stack shows source lines and local variables, as on Django's debug page, with sensitive values masked.
71
+ - **Translations:** English and Russian.
72
+
73
+ ## Requirements
74
+
75
+ - Python 3.11 or later.
76
+ - Django 5.2 or later; 5.2, 6.0 and 6.1 are tested.
77
+ - Optional: Django REST framework and Celery.
78
+
79
+ It works with any database that supports Django's `JSONField`, and is tested on SQLite and PostgreSQL.
80
+
81
+ ## Installation
82
+
83
+ 1. Install the package. It is named `django-server-errors`, and its app is `errors`.
84
+
85
+ ```shell
86
+ pip install django-server-errors
87
+ ```
88
+
89
+ 2. Add the app to `INSTALLED_APPS`. It needs the admin.
90
+
91
+ ```python
92
+ INSTALLED_APPS = [
93
+ 'django.contrib.admin',
94
+ # ...
95
+ 'errors',
96
+ ]
97
+ ```
98
+
99
+ 3. Put the middleware **first** in `MIDDLEWARE`. Then it also sees the 500s that Django makes of exceptions in the other middleware.
100
+
101
+ ```python
102
+ MIDDLEWARE = [
103
+ 'errors.middleware.ErrorCaptureMiddleware',
104
+ # ...
105
+ ]
106
+ ```
107
+
108
+ 4. Create the tables:
109
+
110
+ ```
111
+ python manage.py migrate errors
112
+ ```
113
+
114
+ 5. If you use Celery, restart the workers. The app connects to Celery's `task_failure` signal when Django loads in the worker, so no Celery configuration is needed.
115
+
116
+ 6. Optional: send the `errors` logger to a handler. It logs, with a traceback, any error that could not be recorded, for example while the database is down.
117
+
118
+ ```python
119
+ LOGGING = {
120
+ # ...
121
+ 'loggers': {
122
+ 'errors': {'handlers': ['file'], 'level': 'INFO'},
123
+ },
124
+ }
125
+ ```
126
+
127
+ Errors appear in the admin under **Server errors**. Users need the view permission on errors to see them, and the change permission to set severity.
128
+
129
+ ## Settings
130
+
131
+ | Setting | Default | Meaning |
132
+ | --- | --- | --- |
133
+ | `ERRORS_MAX_TRACES` | `10` | Occurrences kept per error, older ones are deleted. The count keeps the total. A trace with local variables takes tens of kilobytes. |
134
+
135
+ ## Sensitive data
136
+
137
+ For each occurrence, the app stores:
138
+ - the message and traceback;
139
+ - the stack, with source lines and local variables;
140
+ - the request's method, path, query parameters, status, view, route, site, user id and client IP.
141
+
142
+ It does not store the request body, cookies, headers or settings.
143
+
144
+ What is masked:
145
+ - **By name:** query parameters, local variables and dictionary keys at any depth whose names contain `API`, `AUTH`, `TOKEN`, `KEY`, `SECRET`, `PASS` or `SIGNATURE`, as in Django's `SafeExceptionReporterFilter`.
146
+ - **Decorated functions:** all local variables of functions decorated with `@sensitive_variables`, and of every function they call. Also POST parameters named in `@sensitive_post_parameters`. Django applies these two only when `DEBUG` is `False`.
147
+ - **Requests:** request objects are shown as method and path only, because their repr includes the query string.
148
+
149
+ Name masking does not reach secrets inside other objects' representations, such as a serializer holding the raw input. Decorate views and tasks that handle passwords, one-time codes or payment data with `@sensitive_variables()`:
150
+
151
+ ```python
152
+ from django.views.decorators.debug import sensitive_variables
153
+
154
+ @sensitive_variables()
155
+ def login(request):
156
+ ...
157
+ ```
158
+
159
+ Local variables may also contain personal data. Grant the view permission on errors only to those who may see it.
160
+
161
+ ## Limitations
162
+
163
+ - Errors are written synchronously by the process that failed. If the database is unavailable, an error is only logged.
164
+ - It is a lightweight tracker for a site's own admin. It has no sampling, notifications or retention beyond the per-error trace limit. For high volumes, use a dedicated error tracker.
165
+
166
+ ## Development
167
+
168
+ ### Tests
169
+
170
+ In a project that has the app installed:
171
+
172
+ ```shell
173
+ python manage.py test errors
174
+ ```
175
+
176
+ On all supported Python and Django versions, with [tox](https://tox.wiki/):
177
+
178
+ ```shell
179
+ tox
180
+ ```
181
+
182
+ Or once, without a project, on SQLite, in the repository's root:
183
+
184
+ ```shell
185
+ python -m django test errors --settings=errors.tests.settings
186
+ ```
187
+
188
+ Tests of the Django REST framework and Celery integration are skipped when those packages are not installed. tox runs each version both without and with them.
189
+
190
+ ### Translations
191
+
192
+ The source strings are English, and `errors/locale/` holds the English and Russian catalogs. To update them after changing strings, run this in the `errors` directory (it needs GNU gettext):
193
+
194
+ ```shell
195
+ django-admin makemessages -l en -l ru
196
+ django-admin compilemessages
197
+ ```
198
+
199
+ ### Releases
200
+
201
+ Set the new version in `pyproject.toml`, commit, then tag the commit and push the tag:
202
+
203
+ ```shell
204
+ git tag v1.0.1
205
+ git push origin v1.0.1
206
+ ```
207
+
208
+ The `publish` workflow tests the tag, publishes it to TestPyPI and PyPI and creates a GitHub release with notes generated from the commits.
209
+
210
+ ## License
211
+
212
+ [MIT](LICENSE)
@@ -0,0 +1,25 @@
1
+ django_server_errors-1.0.0.dist-info/licenses/LICENSE,sha256=mJkmFxJEhjbo24lRLHcHR_HHzRDZhsUDRqSDyGeFojU,1071
2
+ errors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ errors/admin.py,sha256=wbi4vD0NRTqRD4lDKJkGFG1nfaMbvb15JdR293h8-uY,2293
4
+ errors/apps.py,sha256=WjJzxXSlA4tCeo2vyU5KSluHnPnP3AHQQrRqBa8Sq5g,303
5
+ errors/middleware.py,sha256=wmspNme9W-moUrddSuV1VGkHuZFSJ-Yu4vfjNHjCDpk,1148
6
+ errors/models.py,sha256=ajPn0SIhw1OST1rY5lsfiayoY1UDbVblD3YbvAqOYi8,2941
7
+ errors/recorder.py,sha256=-0KA89O9YwWzFSuZYl7oIE5Be31Awo-LSGKtSoqyVkU,10193
8
+ errors/signals.py,sha256=tylH5WdNIdcv3JLFnbHbnHABZKo5b7O1GL6k-rKpSY4,1175
9
+ errors/locale/en/LC_MESSAGES/django.mo,sha256=jt2am_uSSP25gHWntlf-Q72KvGXe71MfR201TFLazSY,254
10
+ errors/locale/en/LC_MESSAGES/django.po,sha256=FE4taDg4rmIs71_Y3FIe-pZb2s3J_pjUX2Dff8Y7NsQ,2602
11
+ errors/locale/ru/LC_MESSAGES/django.mo,sha256=Okax9QKlJGKTTHYWHw_q9d7SD2Ci9fC4TaryqNbz5D4,2804
12
+ errors/locale/ru/LC_MESSAGES/django.po,sha256=7xfDBlfnm3EDZt4svIqKOvnD16_O5GMfUciuHxWfpCc,3711
13
+ errors/migrations/0001_initial.py,sha256=QE-Eg6PhoEBUBbDu3rdF5PiNZohmVGnFkD_EpU8NgeQ,2945
14
+ errors/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
+ errors/templates/admin/errors/frames.html,sha256=sZNcfeuXNrkNvLAuklHLROQJEafTXXbYHQ2b_67vLgc,1904
16
+ errors/tests/__init__.py,sha256=en_C5NLsvq66NsmzDSkxXwVQYLPQvpDSzUJyDNWws3k,227
17
+ errors/tests/mixins.py,sha256=AHB4ifToBepv-c9iC5GOvtm78Tn7ApRXkk2oNRB80zI,683
18
+ errors/tests/settings.py,sha256=pnacTJcaCo3rrqvqFN14I3qcLX0yh5gDS6Sj93dzvVg,1148
19
+ errors/tests/test_admin.py,sha256=Q0HO0E2SDesRtb31dprxkkMFcIMQ2qJ6lcbEAnrPvRE,1845
20
+ errors/tests/test_recording.py,sha256=rSmpVUVdeJRa-Kl2ette7sBjgBOVHLyGzyzUHV9ncY8,7966
21
+ errors/tests/urls.py,sha256=KysLHIB7iwqLVl1kwHIfto_Uj-mKB_R7CG9G7ygNLsA,2416
22
+ django_server_errors-1.0.0.dist-info/METADATA,sha256=XOYkSReuKYL-DnHohozyDTf_CA4C4hA5yG06Bo-SWLY,9139
23
+ django_server_errors-1.0.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
24
+ django_server_errors-1.0.0.dist-info/top_level.txt,sha256=-faFb0nzS6Z57ipYdQq5ZNGvg1JQqD5XUIharWfpR7g,7
25
+ django_server_errors-1.0.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.2.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Andrey Novikov
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ errors
errors/__init__.py ADDED
File without changes
errors/admin.py ADDED
@@ -0,0 +1,65 @@
1
+ import json
2
+
3
+ from django.contrib import admin
4
+ from django.template.defaultfilters import floatformat
5
+ from django.template.loader import render_to_string
6
+ from django.utils.html import format_html
7
+ from django.utils.text import Truncator
8
+ from django.utils.translation import gettext_lazy as _
9
+
10
+ from .models import Error, ErrorTrace
11
+
12
+
13
+ class ErrorTraceInline(admin.StackedInline):
14
+ model = ErrorTrace
15
+ extra = 0
16
+ can_delete = False
17
+ fields = ('message', 'context_display', 'frames_display', 'traceback_display') # the time is in the title
18
+ readonly_fields = fields
19
+
20
+ def has_add_permission(self, request, obj=None):
21
+ return False
22
+
23
+ def has_change_permission(self, request, obj=None):
24
+ return False
25
+
26
+ @admin.display(description=_('context'))
27
+ def context_display(self, trace):
28
+ return format_html('<pre style="margin: 0">{}</pre>', json.dumps(trace.context, ensure_ascii=False, indent=2))
29
+
30
+ @admin.display(description=_('stack'))
31
+ def frames_display(self, trace):
32
+ return render_to_string('admin/errors/frames.html', {'frames': trace.frames})
33
+
34
+ @admin.display(description=_('traceback'))
35
+ def traceback_display(self, trace):
36
+ return format_html(
37
+ '<details><summary>{}</summary><pre style="margin: 0">{}</pre></details>', _('as text'), trace.traceback,
38
+ )
39
+
40
+
41
+ @admin.register(Error)
42
+ class ErrorAdmin(admin.ModelAdmin):
43
+ list_display = (
44
+ 'name', 'short_message', 'source', 'location', 'count', 'frequency_display', 'severity', 'first_seen', 'last_seen',
45
+ )
46
+ list_editable = ('severity',)
47
+ list_filter = ('severity', 'kind', 'last_seen')
48
+ search_fields = ('name', 'message', 'source', 'location')
49
+ date_hierarchy = 'last_seen'
50
+ fields = (
51
+ 'name', 'message', 'kind', 'source', 'location', 'count', 'frequency_display', 'first_seen', 'last_seen', 'severity',
52
+ )
53
+ readonly_fields = fields[:-1]
54
+ inlines = (ErrorTraceInline,)
55
+
56
+ def has_add_permission(self, request):
57
+ return False
58
+
59
+ @admin.display(description=_('message'))
60
+ def short_message(self, error):
61
+ return Truncator(error.message).chars(100)
62
+
63
+ @admin.display(description=_('frequency, per day'))
64
+ def frequency_display(self, error):
65
+ return floatformat(error.frequency, 1)
errors/apps.py ADDED
@@ -0,0 +1,11 @@
1
+ from django.apps import AppConfig
2
+ from django.utils.translation import gettext_lazy as _
3
+
4
+
5
+ class ErrorsConfig(AppConfig):
6
+ name = 'errors'
7
+ verbose_name = _('Server errors')
8
+ default_auto_field = 'django.db.models.BigAutoField'
9
+
10
+ def ready(self):
11
+ from . import signals # noqa: F401
Binary file
@@ -0,0 +1,165 @@
1
+ # Translations of the errors app.
2
+ # This file is distributed under the same license as the errors package.
3
+ #
4
+ msgid ""
5
+ msgstr ""
6
+ "Project-Id-Version: errors\n"
7
+ "Report-Msgid-Bugs-To: \n"
8
+ "POT-Creation-Date: 2026-11-09 12:23+0300\n"
9
+ "Language: en\n"
10
+ "MIME-Version: 1.0\n"
11
+ "Content-Type: text/plain; charset=UTF-8\n"
12
+ "Content-Transfer-Encoding: 8bit\n"
13
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
14
+
15
+ #: admin.py:26 models.py:57
16
+ msgid "context"
17
+ msgstr ""
18
+
19
+ #: admin.py:30 models.py:56
20
+ msgid "stack"
21
+ msgstr ""
22
+
23
+ #: admin.py:34 models.py:54
24
+ msgid "traceback"
25
+ msgstr ""
26
+
27
+ #: admin.py:37
28
+ msgid "as text"
29
+ msgstr ""
30
+
31
+ #: admin.py:59 models.py:26 models.py:53
32
+ msgid "message"
33
+ msgstr ""
34
+
35
+ #: admin.py:63
36
+ msgid "frequency, per day"
37
+ msgstr ""
38
+
39
+ #: apps.py:7
40
+ msgid "Server errors"
41
+ msgstr ""
42
+
43
+ #: models.py:14
44
+ msgid "Request"
45
+ msgstr ""
46
+
47
+ #: models.py:15
48
+ msgid "Celery task"
49
+ msgstr ""
50
+
51
+ #: models.py:18
52
+ msgid "Low"
53
+ msgstr ""
54
+
55
+ #: models.py:19
56
+ msgid "Medium"
57
+ msgstr ""
58
+
59
+ #: models.py:20
60
+ msgid "High"
61
+ msgstr ""
62
+
63
+ #: models.py:21
64
+ msgid "Critical"
65
+ msgstr ""
66
+
67
+ #: models.py:23
68
+ msgid "fingerprint"
69
+ msgstr ""
70
+
71
+ #: models.py:24
72
+ msgid "kind"
73
+ msgstr ""
74
+
75
+ #: models.py:25 models.py:35 models.py:51
76
+ msgid "error"
77
+ msgstr ""
78
+
79
+ #: models.py:25
80
+ msgid "Exception class or response status"
81
+ msgstr ""
82
+
83
+ #: models.py:26
84
+ msgid "The latest one"
85
+ msgstr ""
86
+
87
+ #: models.py:27
88
+ msgid "source"
89
+ msgstr ""
90
+
91
+ #: models.py:27
92
+ msgid "API route, Django view or Celery task"
93
+ msgstr ""
94
+
95
+ #: models.py:28
96
+ msgid "location in code"
97
+ msgstr ""
98
+
99
+ #: models.py:29
100
+ msgid "first seen"
101
+ msgstr ""
102
+
103
+ #: models.py:30
104
+ msgid "last seen"
105
+ msgstr ""
106
+
107
+ #: models.py:31
108
+ msgid "count"
109
+ msgstr ""
110
+
111
+ #: models.py:32
112
+ msgid "severity"
113
+ msgstr ""
114
+
115
+ #: models.py:36
116
+ msgid "errors"
117
+ msgstr ""
118
+
119
+ #: models.py:40
120
+ #, python-format
121
+ msgid "%(name)s in %(source)s"
122
+ msgstr ""
123
+
124
+ #: models.py:52
125
+ msgid "time"
126
+ msgstr ""
127
+
128
+ #: models.py:60
129
+ msgid "occurrence"
130
+ msgstr ""
131
+
132
+ #: models.py:61
133
+ msgid "occurrences"
134
+ msgstr ""
135
+
136
+ #: templates/admin/errors/frames.html:6
137
+ #, python-format
138
+ msgid ""
139
+ "The above exception (%(cause)s) was the direct cause of the following "
140
+ "exception:"
141
+ msgstr ""
142
+
143
+ #: templates/admin/errors/frames.html:8
144
+ #, python-format
145
+ msgid ""
146
+ "During handling of the above exception (%(cause)s), another exception "
147
+ "occurred:"
148
+ msgstr ""
149
+
150
+ #: templates/admin/errors/frames.html:13
151
+ #, python-format
152
+ msgid "<code>%(file)s</code>, line %(line)s, in <code>%(function)s</code>"
153
+ msgstr ""
154
+
155
+ #: templates/admin/errors/frames.html:17
156
+ msgid "Variable"
157
+ msgstr ""
158
+
159
+ #: templates/admin/errors/frames.html:17
160
+ msgid "Value"
161
+ msgstr ""
162
+
163
+ #: templates/admin/errors/frames.html:27
164
+ msgid "None: the response came without an exception"
165
+ msgstr ""
Binary file
@@ -0,0 +1,167 @@
1
+ # Translations of the errors app.
2
+ # This file is distributed under the same license as the errors package.
3
+ #
4
+ msgid ""
5
+ msgstr ""
6
+ "Project-Id-Version: errors\n"
7
+ "Report-Msgid-Bugs-To: \n"
8
+ "POT-Creation-Date: 2026-11-09 12:23+0300\n"
9
+ "Language: ru\n"
10
+ "MIME-Version: 1.0\n"
11
+ "Content-Type: text/plain; charset=UTF-8\n"
12
+ "Content-Transfer-Encoding: 8bit\n"
13
+ "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
14
+ "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
15
+ "(n%100>=11 && n%100<=14)? 2 : 3);\n"
16
+
17
+ #: admin.py:26 models.py:57
18
+ msgid "context"
19
+ msgstr "контекст"
20
+
21
+ #: admin.py:30 models.py:56
22
+ msgid "stack"
23
+ msgstr "стек"
24
+
25
+ #: admin.py:34 models.py:54
26
+ msgid "traceback"
27
+ msgstr "трассировка"
28
+
29
+ #: admin.py:37
30
+ msgid "as text"
31
+ msgstr "текстом"
32
+
33
+ #: admin.py:59 models.py:26 models.py:53
34
+ msgid "message"
35
+ msgstr "сообщение"
36
+
37
+ #: admin.py:63
38
+ msgid "frequency, per day"
39
+ msgstr "частота, в день"
40
+
41
+ #: apps.py:7
42
+ msgid "Server errors"
43
+ msgstr "Ошибки сервера"
44
+
45
+ #: models.py:14
46
+ msgid "Request"
47
+ msgstr "Запрос"
48
+
49
+ #: models.py:15
50
+ msgid "Celery task"
51
+ msgstr "Задача Celery"
52
+
53
+ #: models.py:18
54
+ msgid "Low"
55
+ msgstr "Низкая"
56
+
57
+ #: models.py:19
58
+ msgid "Medium"
59
+ msgstr "Средняя"
60
+
61
+ #: models.py:20
62
+ msgid "High"
63
+ msgstr "Высокая"
64
+
65
+ #: models.py:21
66
+ msgid "Critical"
67
+ msgstr "Критическая"
68
+
69
+ #: models.py:23
70
+ msgid "fingerprint"
71
+ msgstr "отпечаток"
72
+
73
+ #: models.py:24
74
+ msgid "kind"
75
+ msgstr "вид"
76
+
77
+ #: models.py:25 models.py:35 models.py:51
78
+ msgid "error"
79
+ msgstr "ошибка"
80
+
81
+ #: models.py:25
82
+ msgid "Exception class or response status"
83
+ msgstr "Класс исключения или код ответа"
84
+
85
+ #: models.py:26
86
+ msgid "The latest one"
87
+ msgstr "Последнее"
88
+
89
+ #: models.py:27
90
+ msgid "source"
91
+ msgstr "источник"
92
+
93
+ #: models.py:27
94
+ msgid "API route, Django view or Celery task"
95
+ msgstr "Маршрут API, представление Django или задача Celery"
96
+
97
+ #: models.py:28
98
+ msgid "location in code"
99
+ msgstr "место в коде"
100
+
101
+ #: models.py:29
102
+ msgid "first seen"
103
+ msgstr "впервые"
104
+
105
+ #: models.py:30
106
+ msgid "last seen"
107
+ msgstr "последний раз"
108
+
109
+ #: models.py:31
110
+ msgid "count"
111
+ msgstr "количество"
112
+
113
+ #: models.py:32
114
+ msgid "severity"
115
+ msgstr "важность"
116
+
117
+ #: models.py:36
118
+ msgid "errors"
119
+ msgstr "ошибки"
120
+
121
+ #: models.py:40
122
+ #, python-format
123
+ msgid "%(name)s in %(source)s"
124
+ msgstr "%(name)s в %(source)s"
125
+
126
+ #: models.py:52
127
+ msgid "time"
128
+ msgstr "время"
129
+
130
+ #: models.py:60
131
+ msgid "occurrence"
132
+ msgstr "случай"
133
+
134
+ #: models.py:61
135
+ msgid "occurrences"
136
+ msgstr "случаи"
137
+
138
+ #: templates/admin/errors/frames.html:6
139
+ #, python-format
140
+ msgid ""
141
+ "The above exception (%(cause)s) was the direct cause of the following "
142
+ "exception:"
143
+ msgstr "Исключение выше (%(cause)s) стало прямой причиной следующего:"
144
+
145
+ #: templates/admin/errors/frames.html:8
146
+ #, python-format
147
+ msgid ""
148
+ "During handling of the above exception (%(cause)s), another exception "
149
+ "occurred:"
150
+ msgstr "Во время обработки исключения выше (%(cause)s) возникло другое:"
151
+
152
+ #: templates/admin/errors/frames.html:13
153
+ #, python-format
154
+ msgid "<code>%(file)s</code>, line %(line)s, in <code>%(function)s</code>"
155
+ msgstr "<code>%(file)s</code>, строка %(line)s, в <code>%(function)s</code>"
156
+
157
+ #: templates/admin/errors/frames.html:17
158
+ msgid "Variable"
159
+ msgstr "Переменная"
160
+
161
+ #: templates/admin/errors/frames.html:17
162
+ msgid "Value"
163
+ msgstr "Значение"
164
+
165
+ #: templates/admin/errors/frames.html:27
166
+ msgid "None: the response came without an exception"
167
+ msgstr "Нет: ответ без исключения"