{"id":21919460,"url":"https://github.com/dlrsp/django-errors","last_synced_at":"2025-04-19T12:28:05.596Z","repository":{"id":3306288,"uuid":"48966287","full_name":"DLRSP/django-errors","owner":"DLRSP","description":"Django application for handling server errors.","archived":false,"fork":false,"pushed_at":"2024-11-15T08:17:02.000Z","size":3494,"stargazers_count":4,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-15T09:24:45.719Z","etag":null,"topics":["django","error-handling","errors","python"],"latest_commit_sha":null,"homepage":"https://dlrsp.github.io/django-errors/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DLRSP.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.rst","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-01-04T00:39:45.000Z","updated_at":"2024-11-15T08:16:44.000Z","dependencies_parsed_at":"2024-04-06T09:23:31.054Z","dependency_job_id":"4dee19ba-0b68-47bc-a91c-8db38ec4d975","html_url":"https://github.com/DLRSP/django-errors","commit_stats":{"total_commits":291,"total_committers":3,"mean_commits":97.0,"dds":"0.15807560137457044","last_synced_commit":"18b1a3e5686f005b1a2536cff888aaccb1bd05e3"},"previous_names":[],"tags_count":32,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DLRSP%2Fdjango-errors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DLRSP%2Fdjango-errors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DLRSP%2Fdjango-errors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DLRSP%2Fdjango-errors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DLRSP","download_url":"https://codeload.github.com/DLRSP/django-errors/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226979181,"owners_count":17712574,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","error-handling","errors","python"],"created_at":"2024-11-28T20:08:04.485Z","updated_at":"2024-11-28T20:08:05.196Z","avatar_url":"https://github.com/DLRSP.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# django-errors [![PyPi license](https://img.shields.io/pypi/l/django-errors.svg)](https://pypi.python.org/pypi/django_errors)\n\n[![PyPi status](https://img.shields.io/pypi/status/django-errors.svg)](https://pypi.python.org/pypi/django_errors)\n[![PyPi version](https://img.shields.io/pypi/v/django-errors.svg)](https://pypi.python.org/pypi/django_errors)\n[![PyPi python version](https://img.shields.io/pypi/pyversions/django-errors.svg)](https://pypi.python.org/pypi/django_errors)\n[![PyPi downloads](https://img.shields.io/pypi/dm/django-errors.svg)](https://pypi.python.org/pypi/django_errors)\n[![PyPi downloads](https://img.shields.io/pypi/dw/django-errors.svg)](https://pypi.python.org/pypi/django_errors)\n[![PyPi downloads](https://img.shields.io/pypi/dd/django-errors.svg)](https://pypi.python.org/pypi/django_errors)\n\n## GitHub ![GitHub release](https://img.shields.io/github/tag/DLRSP/django-errors.svg) ![GitHub release](https://img.shields.io/github/release/DLRSP/django-errors.svg)\n\n## Test [![codecov.io](https://codecov.io/github/DLRSP/django-errors/coverage.svg?branch=main)](https://codecov.io/github/DLRSP/django-errors?branch=main) [![pre-commit.ci status](https://results.pre-commit.ci/badge/github/DLRSP/django-errors/main.svg)](https://results.pre-commit.ci/latest/github/DLRSP/django-errors/main) [![gitthub.com](https://github.com/DLRSP/django-errors/actions/workflows/ci.yaml/badge.svg)](https://github.com/DLRSP/django-errors/actions/workflows/ci.yaml)\n\n## Check Demo Project\n* Browser the demo app on-line on [Heroku](https://django-errors.herokuapp.com/)\n* Check the demo repo on [GitHub](https://github.com/DLRSP/example/tree/django-errors)\n\n## Requirements\n-   Python 3.8+ supported.\n-   Django 3.2+ supported.\n\n## Setup\n1. Install from **pip**:\n```shell\npip install django-errors\n```\n\n2. modify `settings.py` by adding the app to `INSTALLED_APPS`:\n```python\nINSTALLED_APPS = [\n    # ...\n    \"django_errors\",\n    # ...\n]\n```\n\n3. Finally, modify your project `urls.py` with handlers for all errors:\n```python\n# ...other imports...\nfrom django_errors import views as errors_views\n\nurlpatterns = [\n    # ...other urls...\n]\n\nhandler400 = errors_views.custom_400\n\"\"\" Handle 400 error \"\"\"\n\nhandler403 = errors_views.custom_403\n\"\"\" Handle 403 error \"\"\"\n\nhandler404 = errors_views.custom_404\n\"\"\" Handle 404 error \"\"\"\n\nhandler500 = errors_views.custom_500\n\"\"\" Handle 500 error \"\"\"\n```\n\n\n## Run Example Project\n\n```shell\ngit clone --depth=50 --branch=django-errors https://github.com/DLRSP/example.git DLRSP/example\ncd DLRSP/example\npython manage.py runserver\n```\n\nNow browser the app @ http://127.0.0.1:8000\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdlrsp%2Fdjango-errors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdlrsp%2Fdjango-errors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdlrsp%2Fdjango-errors/lists"}