Skip to content

Commit e3b6109

Browse files
authored
Bump: python from 3.9.7 to 3.12.11 (#27)
1 parent 6b7e5f9 commit e3b6109

File tree

3 files changed

+3
-50
lines changed

3 files changed

+3
-50
lines changed

README.md

Lines changed: 2 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -63,60 +63,14 @@ Apply `initial_data.json` fixture. This action will erase all previous data:
6363
make loaddata
6464
```
6565

66+
*Default admin password for local development is `admin`.*
67+
6668
#### Run tests
6769

6870
```shell
6971
make tests
7072
```
7173

72-
### Using docker compose
73-
74-
#### Step 1: Build
75-
76-
```shell
77-
docker compose -p django_atomic_transactions -f environment/docker compose.yml build
78-
```
79-
80-
#### Step 2: Migrate
81-
82-
Apply django migrations:
83-
84-
```shell
85-
docker compose -p django_atomic_transactions -f environment/docker compose.yml run --rm --service-ports web migrate
86-
```
87-
88-
#### Step 3: Run service
89-
90-
* **Runserver**
91-
92-
Run django runserver command:
93-
94-
```shell
95-
docker compose -p django_atomic_transactions -f environment/docker compose.yml run --rm --service-ports web dev
96-
```
97-
98-
* **Uvicorn**
99-
100-
Run uvicorn server:
101-
102-
```shell
103-
docker compose -p django_atomic_transactions -f environment/docker compose.yml run --rm --service-ports web uvicorn
104-
```
105-
106-
#### Step 4: Load sample data
107-
108-
Apply `initial_data.json` fixture. This action will erase all previous data:
109-
110-
```shell
111-
docker compose -p django_atomic_transactions -f environment/docker compose.yml run --rm --service-ports web loaddata
112-
```
113-
114-
#### Step 5: Run tests
115-
116-
```shell
117-
docker compose -p django_atomic_transactions -f environment/docker compose.yml run --rm --service-ports web python manage.py test --failfast api
118-
```
119-
12074
## Know issues
12175

12276
### Database connection error: web service could not connect to db service

environment/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ---------- Base ----------
22

3-
FROM python:3.9.7-alpine3.14 AS base
3+
FROM python:3.12.11-alpine3.22 AS base
44

55
ENV PYTHONUNBUFFERED 1
66

src/django_atomic_transactions/settings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import os
22

3-
43
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
54

65
SECRET_KEY = os.environ.get('SECRET_KEY', '')

0 commit comments

Comments
 (0)