Skip to content

Commit 0ffaf21

Browse files
committed
Correct more instances of python manage.py
1 parent e407e93 commit 0ffaf21

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,12 @@ A RESTful API for Pokémon - [pokeapi.co](https://pokeapi.co)
2323

2424
## Table of Contents
2525

26-
- [Setup](#setup)
26+
- [Table of Contents](#table-of-contents)
27+
- [Setup   ](#setup---)
2728
- [Database setup](#database-setup)
28-
- [Docker and Compose](#docker-and-compose)
29-
- [GraphQL](#graphql)
30-
- [Kubernetes](#kubernetes)
29+
- [Docker and Compose   ](#docker-and-compose---)
30+
- [GraphQL   ](#graphql---)
31+
- [Kubernetes   ](#kubernetes---)
3132
- [Wrappers](#wrappers)
3233
- [Donations](#donations)
3334
- [Join Us On Slack!](#join-us-on-slack)
@@ -99,8 +100,8 @@ If you don't have `make` on your machine you can use the following commands
99100
100101
```sh
101102
docker compose up -d
102-
docker compose exec -T app python manage.py migrate --settings=config.docker-compose
103-
docker compose exec -T app sh -c 'echo "from data.v2.build import build_all; build_all()" | python manage.py shell --settings=config.docker-compose'
103+
docker compose exec -T app uv run manage.py migrate --settings=config.docker-compose
104+
docker compose exec -T app sh -c 'echo "from data.v2.build import build_all; build_all()" | uv run manage.py shell --settings=config.docker-compose'
104105
```
105106
106107
Browse [localhost/api/v2/](http://localhost/api/v2/) or [localhost/api/v2/pokemon/bulbasaur/](http://localhost/api/v2/pokemon/bulbasaur/) on port `80`.
@@ -151,8 +152,8 @@ Configure `kubectl` to point to a cluster and then run the following commands to
151152
kubectl apply -k Resources/k8s/kustomize/base/
152153
kubectl config set-context --current --namespace pokeapi # (Optional) Set pokeapi ns as the working ns
153154
# Wait for the cluster to spin up
154-
kubectl exec --namespace pokeapi deployment/pokeapi -- python manage.py migrate --settings=config.docker-compose # Migrate the DB
155-
kubectl exec --namespace pokeapi deployment/pokeapi -- sh -c 'echo "from data.v2.build import build_all; build_all()" | python manage.py shell --settings=config.docker-compose' # Build the db
155+
kubectl exec --namespace pokeapi deployment/pokeapi -- uv run manage.py migrate --settings=config.docker-compose # Migrate the DB
156+
kubectl exec --namespace pokeapi deployment/pokeapi -- sh -c 'echo "from data.v2.build import build_all; build_all()" | uv run manage.py shell --settings=config.docker-compose' # Build the db
156157
kubectl wait --namespace pokeapi --timeout=120s --for=condition=complete job/load-graphql # Wait for Graphql configuration job to finish
157158
```
158159

Resources/docker/app/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@ Pokémon data isn't automatically present in this image. All Pokémon data is pe
4646
When the container is up and running, run the following shell commands:
4747

4848
```sh
49-
docker exec pokeapi python manage.py migrate --settings=config.docker-compose
50-
docker exec pokeapi sh -c 'echo "from data.v2.build import build_all; build_all()" | python manage.py shell --settings=config.docker-compose'
49+
docker exec pokeapi uv run manage.py migrate --settings=config.docker-compose
50+
docker exec pokeapi sh -c 'echo "from data.v2.build import build_all; build_all()" | uv run manage.py shell --settings=config.docker-compose'
5151
```

data/v2/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# To build out the data you'll need to jump into the Django shell
22
#
3-
# $ python manage.py shell
3+
# $ uv run manage.py shell
44
#
55
# and run the build script with
66
#

0 commit comments

Comments
 (0)