Skip to content

Commit c11d538

Browse files
committed
Update Django to 5.1.3
1 parent 8c1a829 commit c11d538

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

example-django/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.11-slim
1+
FROM python:3.12-slim
22

33
WORKDIR /app
44

example-django/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ This is a sample Django application that demonstrates how to integrate Logtail f
99
- Custom context and extra data in logs
1010
- Exception handling and logging
1111
- Docker support
12+
- Django 5.1.3 with Python 3.12
1213

1314
## Prerequisites
1415

@@ -70,4 +71,4 @@ example-django/
7071

7172
## Logging Configuration
7273

73-
The logging configuration can be found in `settings.py`. It sets up both console and Logtail handlers with a verbose formatter.
74+
The logging configuration can be found in `settings.py`. It sets up both console and Logtail handlers with a verbose formatter.

example-django/demo/settings.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@
9696
# Default primary key field type
9797
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
9898

99+
# Default timeout for database operations (new in Django 5.1)
100+
DATABASE_TIMEOUT = 30
101+
99102
# Logging configuration with Logtail
100103
LOGGING = {
101104
'version': 1,

example-django/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Django>=4.2.0,<5.0.0
1+
Django==5.1.3
22
logtail-python
33
gunicorn>=21.2.0
44
python-dotenv>=1.0.0

0 commit comments

Comments
 (0)