Skip to content

Commit c4ae757

Browse files
authored
Merge pull request #5 from alflanagan/upgrade_wagtail_5.2
Upgrade wagtail 5.2
2 parents 1fd6fca + a2a31a5 commit c4ae757

File tree

6 files changed

+40
-9
lines changed

6 files changed

+40
-9
lines changed

.dockerignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
fly.toml
22
.git/
33
*.sqlite3
4-
app/node_modules/
54
terraform/
6-
app/static/
75
.idea/
86
.vscode/
7+
**/.venv/
8+
**/static/
9+
**/.DS_Store
10+
**/.env*

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ WORKDIR /app
3232
# Copy the source code of the project into the container.
3333
COPY app /app/
3434

35-
RUN pip install --no-cache-dir uv==0.7.12 && \
35+
RUN pip install --no-cache-dir uv==0.7.13 && \
3636
uv sync --frozen
3737

3838
# Note: Fly automatically sets DATABASE_URL

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
11
# A Lloyd Flanagan's Personal Website (API)
22

33
Wagtail version of my personal website
4+
5+
6+
## Create superuser locally
7+
8+
When running on a local machine, after `docker compose -up -wait` run the following:
9+
10+
```
11+
$ docker compose exec -it wagtail bash
12+
root@5c5cb7559dca:/app# uv run python manage.py createsuperuser
13+
Username (leave blank to use 'root'): xxxxx
14+
Email address: [email protected]
15+
Password:
16+
Password (again):
17+
The password is too similar to the username.
18+
This password is too short. It must contain at least 8 characters.
19+
This password is too common.
20+
Bypass password validation and create user anyway? [y/N]: y
21+
Superuser created successfully.
22+
```

app/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ dependencies = [
1414
"gunicorn>=23.0.0",
1515
"psycopg>=3.2.7",
1616
"structlog>=25.3.0",
17-
"wagtail==5.1.2",
17+
"wagtail<5.3",
1818
]
1919

2020
[dependency-groups]

app/uv.lock

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

docker-compose.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,17 @@ services:
66
context: .
77
command: make run-server
88
volumes:
9-
- ./app:/app:delegated
9+
# don't link .venv! TODO: find simpler dir organization
10+
- ./app/.yarn:/app/.yarn:delegated
11+
- ./app/.yarnrc.yml:/app/.yarnrc:delegated
12+
- ./app/alloydflanagan:/app/alloydflanagan:delegated
13+
- ./app/Makefile:/app/Makefile:delegated
14+
- ./app/manage.py:/app/manage.py:delegated
15+
- ./app/media:/app/media:delegated
16+
- ./app/package.json:/app/package.json:delegated
17+
- ./app/pyproject.toml:/app/pyproject.toml:delegated
18+
- ./app/uv.lock:/app/uv.lock:delegated
19+
- ./app/yarn.lock:/app/yarn.lock:delegated
1020
environment:
1121
DATABASE_URL: postgres://wagtail:development@postgres:5432/alloydflanagan
1222
ports:

0 commit comments

Comments
 (0)