{"id":16177596,"url":"https://github.com/raphaelm/django-debug-request","last_synced_at":"2025-06-25T09:39:12.062Z","repository":{"id":237404575,"uuid":"794472002","full_name":"raphaelm/django-debug-request","owner":"raphaelm","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-04T13:21:51.000Z","size":14,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-27T17:57:28.151Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/raphaelm.png","metadata":{"files":{"readme":"README.rst","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-05-01T08:46:33.000Z","updated_at":"2025-05-12T11:30:03.000Z","dependencies_parsed_at":"2024-05-01T09:47:19.527Z","dependency_job_id":"43a72dad-13f4-4c8e-8e42-5158fcab98f5","html_url":"https://github.com/raphaelm/django-debug-request","commit_stats":{"total_commits":4,"total_committers":2,"mean_commits":2.0,"dds":0.25,"last_synced_commit":"7b2fab925915dc868aa3232d7a91370f635d5aec"},"previous_names":["raphaelm/django-debug-request"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/raphaelm/django-debug-request","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphaelm%2Fdjango-debug-request","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphaelm%2Fdjango-debug-request/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphaelm%2Fdjango-debug-request/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphaelm%2Fdjango-debug-request/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raphaelm","download_url":"https://codeload.github.com/raphaelm/django-debug-request/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphaelm%2Fdjango-debug-request/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261846211,"owners_count":23218727,"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":[],"created_at":"2024-10-10T05:09:38.684Z","updated_at":"2025-06-25T09:39:12.029Z","avatar_url":"https://github.com/raphaelm.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"django-debug-request\n====================\n\n.. image:: https://img.shields.io/pypi/v/django-debug-request.svg\n   :target: https://pypi.python.org/pypi/django-debug-request\n\nIt's cURL in your Django! This is a very small and light-weight alternative to something like\ndjango-debug-toolbar that is useful to use in production when you need to figure out what is going\nwrong. It consists of one management command that supports limited subset of the cURL command's\narguments, but executes the request inside the Django stack using ``django.test.client.Client`` –\nwith extended debug output.\n\nTested with Django 4.2 and 5.0.\n\nInstallation\n------------\n\nFirst, install the package::\n\n    pip install django-debug-request\n\nThen, add it to your installed apps::\n\n    INSTALLED_APPS = [\n        …\n        \"django_debug_request\",\n    ]\n\nThat's it!\n\nUsage\n-----\n\nUse your app in production and choose \"Copy to cURL\" in your browser's developer tools for\nthe request you are interested in. Replace ``curl`` with ``python manage.py debug_request``\nand run it against your server.\n\nSupported cURL options:\n\n- ``-X``/``--method``\n- ``-H``/``--header``\n- ``-data-raw``\n- ``--compressed`` (will be ignored since you probably do not like compressd output, but is\n  supported for compatibility with cURL lines generated by Chrome)\n\nSupported other options\n\n- ``--print-sql`` Log all SQL queries\n\nExample::\n\n    $ python manage.py debug_request https://localhost/admin/login/\n    DEBUG 2024-05-01 09:03:15,790 debug_request debug_request Extra array: {'HTTP_HOST': 'localhost'}\n    DEBUG 2024-05-01 09:03:15,805 debug_request debug_request Response code: 200\n    DEBUG 2024-05-01 09:03:15,805 debug_request debug_request Resolver match: ResolverMatch(func=django.contrib.admin.sites.login, args=(), kwargs={}, url_name='login', app_names=['admin'], namespaces=['admin'], route='admin/login/')\n    DEBUG 2024-05-01 09:03:15,805 debug_request debug_request Response header: Content-Type: text/html; charset=utf-8\n    DEBUG 2024-05-01 09:03:15,805 debug_request debug_request Response header: Expires: Wed, 01 May 2024 09:03:15 GMT\n    DEBUG 2024-05-01 09:03:15,805 debug_request debug_request Response header: Cache-Control: max-age=0, no-cache, no-store, must-revalidate, private\n    DEBUG 2024-05-01 09:03:15,805 debug_request debug_request Response header: Vary: Cookie\n    DEBUG 2024-05-01 09:03:15,805 debug_request debug_request Response header: X-Frame-Options: DENY\n    DEBUG 2024-05-01 09:03:15,805 debug_request debug_request Response header: Content-Length: 4145\n    DEBUG 2024-05-01 09:03:15,805 debug_request debug_request Response header: X-Content-Type-Options: nosniff\n    DEBUG 2024-05-01 09:03:15,805 debug_request debug_request Response header: Referrer-Policy: same-origin\n    DEBUG 2024-05-01 09:03:15,806 debug_request debug_request Response header: Cross-Origin-Opener-Policy: same-origin\n    \u003chtml\u003e\n    …\n\nLicense\n-------\n\nApache License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphaelm%2Fdjango-debug-request","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraphaelm%2Fdjango-debug-request","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphaelm%2Fdjango-debug-request/lists"}