{"id":15433035,"url":"https://github.com/simonw/django-http-debug","last_synced_at":"2025-10-08T14:17:11.614Z","repository":{"id":252123096,"uuid":"839491177","full_name":"simonw/django-http-debug","owner":"simonw","description":"Django app for creating endpoints that log incoming request and return mock data","archived":false,"fork":false,"pushed_at":"2024-08-08T16:45:38.000Z","size":22,"stargazers_count":50,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T18:16:07.715Z","etag":null,"topics":["django"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simonw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-07T18:04:19.000Z","updated_at":"2024-10-22T22:37:46.000Z","dependencies_parsed_at":"2024-08-07T21:35:28.176Z","dependency_job_id":"068f19bc-7498-49c6-a17e-8325444bc733","html_url":"https://github.com/simonw/django-http-debug","commit_stats":{"total_commits":13,"total_committers":1,"mean_commits":13.0,"dds":0.0,"last_synced_commit":"c343e57dc1f281c3c4d7c35f7537e1ff5443d77a"},"previous_names":["simonw/django-http-debug"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonw%2Fdjango-http-debug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonw%2Fdjango-http-debug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonw%2Fdjango-http-debug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonw%2Fdjango-http-debug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonw","download_url":"https://codeload.github.com/simonw/django-http-debug/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248933344,"owners_count":21185460,"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"],"created_at":"2024-10-01T18:30:44.764Z","updated_at":"2025-10-08T14:17:06.557Z","avatar_url":"https://github.com/simonw.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# django-http-debug\n\n[![PyPI](https://img.shields.io/pypi/v/django-http-debug.svg)](https://pypi.org/project/django-http-debug/)\n[![Tests](https://github.com/simonw/django-http-debug/actions/workflows/test.yml/badge.svg)](https://github.com/simonw/django-http-debug/actions/workflows/test.yml)\n[![Changelog](https://img.shields.io/github/v/release/simonw/django-http-debug?include_prereleases\u0026label=changelog)](https://github.com/simonw/django-http-debug/releases)\n[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/simonw/django-http-debug/blob/main/LICENSE)\n\nDjango app for creating database-backed HTTP debug endpoints\n\nBackground on this project: [django-http-debug, a new Django app mostly written by Claude](https://simonwillison.net/2024/Aug/8/django-http-debug/)\n\n## Installation\n\nInstall this library using `pip`:\n```bash\npip install django-http-debug\n```\n## Configuration\n\nOnce installed in the same environment as your Django application, add the following to `INSTALLED_APPS` in your Django settings:\n```python\nINSTALLED_APPS = [\n    # ...\n    'django_http_debug',\n    # ...\n]\n```\nAnd add this to `MIDDLEWARE`:\n```python\nMIDDLEWARE = [\n    # ...\n    \"django_http_debug.middleware.DebugMiddleware\",\n    # ...\n]\n```\nThen run `./manage.py migrate` to create the necessary database tables.\n\n## Usage\n\nYou can configure new endpoints in the Django admin. These will only work if they are for URLs that are not yet being served by the rest of your application.\n\nGive an endpoint a path (starting without a `/`) such as:\n\n    webhooks/debug/\n\nYou can optionally configure the returned body or HTTP headers here too.\n\nIf you want to return a binary body - a GIF for example - you can set that endpoint to use Base64 encoding and then paste a base64-encoded string into the body field.\n\nOn macOS you can create base64 strings like this:\n```bash\nbase64 -i pixel.gif -o -\n```\nAny HTTP requests made to `/webhooks/debug/` will be logged in the database. You can view these requests in the Django admin.\n\nYou can turn off the \"Logging enabled\" option on an endpoint to stop logging requests to it to the database.\n\n## Development\n\nTo contribute to this library, first checkout the code. Then create a new virtual environment:\n```bash\ncd django-http-debug\npython -m venv venv\nsource venv/bin/activate\n```\nNow install the dependencies and test dependencies:\n```bash\npip install -e '.[test]'\n```\nTo run the tests:\n```bash\npytest\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonw%2Fdjango-http-debug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonw%2Fdjango-http-debug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonw%2Fdjango-http-debug/lists"}