Skip to content

Commit 7445b52

Browse files
authored
Merge pull request #6 from alflanagan/home_page_content
Home page content
2 parents c4ae757 + 57b8d4d commit 7445b52

File tree

4 files changed

+30
-3
lines changed

4 files changed

+30
-3
lines changed

Dockerfile

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

35+
#TODO: get uv to use system python instead of downloading -- faster, more reliable.
3536
RUN pip install --no-cache-dir uv==0.7.13 && \
3637
uv sync --frozen
3738

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by Django 4.2.21 on 2025-06-17 20:23
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('home', '0003_homepage_intro'),
10+
]
11+
12+
operations = [
13+
migrations.AddField(
14+
model_name='homepage',
15+
name='resume',
16+
field=models.FileField(blank=True, upload_to=''),
17+
),
18+
]

app/alloydflanagan/home/models.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1+
from django.db.models import FileField
2+
13
from wagtail.admin.panels import FieldPanel
24
from wagtail.models import Page
35
from wagtail.fields import RichTextField
46

5-
67
class HomePage(Page):
78
intro = RichTextField()
9+
# may move resume to AboutPage model if/when we have one
10+
resume = FileField(blank=True)
811

912
content_panels = Page.content_panels + [
1013
FieldPanel("intro", classname="full"),
14+
FieldPanel("resume", classname="full"),
1115
]

app/alloydflanagan/settings/base.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
"django.contrib.sessions",
3131
"django.contrib.messages",
3232
"django.contrib.staticfiles",
33-
"wagtail.api.v2",
3433
"wagtail.contrib.forms",
3534
"wagtail.contrib.redirects",
3635
"wagtail.embeds",
@@ -143,11 +142,16 @@
143142
MEDIA_URL = "/media/"
144143

145144
# Wagtail settings
145+
DATA_UPLOAD_MAX_NUMBER_FIELDS = 10_000
146146
WAGTAIL_SITE_NAME = "alloydflanagan"
147147
WAGTAILADMIN_BASE_URL = "admin/"
148148

149149
# Base URL to use when referring to full URLs within the Wagtail admin backend -
150150
# e.g. in notification emails. Don't include '/admin' or a trailing slash
151151
BASE_URL = "https://alloydflanagan.com"
152152

153-
CSRF_TRUSTED_ORIGINS = ["https://alloydflanagan.com", "https://www.alloydflanagan.com"]
153+
CSRF_TRUSTED_ORIGINS = [
154+
"https://alloydflanagan.com",
155+
"https://www.alloydflanagan.com",
156+
"https://alloydflanagan-wag.fly.dev/",
157+
]

0 commit comments

Comments
 (0)