Skip to content

Commit 4ede00f

Browse files
committed
stuff
1 parent 71a3af3 commit 4ede00f

File tree

6 files changed

+15
-10
lines changed

6 files changed

+15
-10
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
## Steps to reproduce the problem:
22

3+
0. (set django and python version that you want to use in pyproject.toml)
34
1. uv sync
45
2. ./init.py
5-
3. ./run.py
6+
3. ./run-gunicorn.py or ./run-daphne.py
67
4. Go to `127.0.0.1:8000/admin`
78
5. See how long it loads :-)

test-django-admin-query-perf/django_admin_sentry_perf/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140

141141
sentry_sdk.init(
142142
dsn=os.environ.get("SENTRY_DSN"),
143+
environment=os.environ.get("SENTRY_ENV", "local"),
143144
traces_sample_rate=1.0,
144145
profiles_sample_rate=1.0,
145-
debug=True,
146146
)
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
[project]
22
name = "test"
33
version = "0"
4-
requires-python = ">=3.13"
4+
# requires-python = "==3.11.11"
5+
requires-python = "==3.13.5"
56

67
dependencies = [
78
"ipdb>=0.13.13",
89
"sentry-sdk[django]",
910
"daphne>=4.2.1",
10-
"django>=4.2.0",
11-
# "django>=5.2.5",
11+
# "django~=4.2.0",
12+
"django>=5.2.5",
1213
"psycopg>=3.1.0",
1314
"gunicorn>=23.0.0",
1415
"whitenoise>=6.5.0",
1516
]
1617

18+
# comment this out to install from pypi
1719
[tool.uv.sources]
1820
sentry-sdk = { path = "../../sentry-python", editable = true }

test-django-admin-query-perf/run-daphne.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ if ! command -v uv &> /dev/null; then
99
fi
1010

1111
# Run Django with Daphne
12+
export SENTRY_ENV=daphne
1213
uv run daphne -b 0.0.0.0 -p 8000 django_admin_sentry_perf.asgi:application

test-django-admin-query-perf/run-gunicorn.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ if ! command -v uv &> /dev/null; then
99
fi
1010

1111
# Run Django with Gunicorn
12+
export SENTRY_ENV=gunicorn
1213
uv run gunicorn --bind 0.0.0.0:8000 django_admin_sentry_perf.wsgi:application

test-django-admin-query-perf/uv.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)