Skip to content

feat: Add Django uWSGI FileResponse test project#5

Merged
ericapisani merged 1 commit intomainfrom
ep/add-django-wsgi-fileresponse-test
Feb 26, 2026
Merged

feat: Add Django uWSGI FileResponse test project#5
ericapisani merged 1 commit intomainfrom
ep/add-django-wsgi-fileresponse-test

Conversation

@ericapisani
Copy link
Member

Add Django uWSGI FileResponse test project

Adds a self-contained Django project for testing how the Sentry SDK handles FileResponse when the application is served under uWSGI. The project exposes a /get-image/ endpoint that returns a PNG file via FileResponse, making it easy to reproduce and verify SDK behavior in this specific server configuration.

This setup is useful for investigating issues with file response tracing or error capture in WSGI environments backed by uWSGI.

Add a self-contained Django project for testing FileResponse behavior
when running under uWSGI. Includes a sample image endpoint and Sentry
SDK integration with tracing enabled.

Co-Authored-By: Claude <noreply@anthropic.com>
@ericapisani ericapisani marked this pull request as ready for review February 26, 2026 15:37
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix prepared a fix for the issue found in the latest run.

  • ✅ Fixed: Unused main.py dead code
    • Removed the unused main.py file as it was leftover template boilerplate with no references or invocations in the Django uWSGI project.

Create PR

Or push these changes by commenting:

@cursor push c0c7dbc27a
Preview (c0c7dbc27a)
diff --git a/test-django-uwsgi-fileresponse/main.py b/test-django-uwsgi-fileresponse/main.py
deleted file mode 100644
--- a/test-django-uwsgi-fileresponse/main.py
+++ /dev/null
@@ -1,6 +1,0 @@
-def main():
-    print("Hello from test-django-uwsgi-fileresponse!")
-
-
-if __name__ == "__main__":
-    main()
\ No newline at end of file
This Bugbot Autofix run was free. To enable autofix for future PRs, go to the Cursor dashboard.



if __name__ == "__main__":
main()
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused main.py dead code

Low Severity

main.py is unused. The project runs via uWSGI (mysite.wsgi:application) and manage.py; nothing imports or invokes main.py. It looks like leftover template boilerplate and can be removed.

Fix in Cursor Fix in Web

@ericapisani ericapisani merged commit 9de6615 into main Feb 26, 2026
8 checks passed
@ericapisani ericapisani deleted the ep/add-django-wsgi-fileresponse-test branch February 26, 2026 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant