File tree Expand file tree Collapse file tree 4 files changed +30
-3
lines changed Expand file tree Collapse file tree 4 files changed +30
-3
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ WORKDIR /app
3232# Copy the source code of the project into the container.
3333COPY app /app/
3434
35+ # TODO: get uv to use system python instead of downloading -- faster, more reliable.
3536RUN pip install --no-cache-dir uv==0.7.13 && \
3637 uv sync --frozen
3738
Original file line number Diff line number Diff line change 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+ ]
Original file line number Diff line number Diff line change 1+ from django .db .models import FileField
2+
13from wagtail .admin .panels import FieldPanel
24from wagtail .models import Page
35from wagtail .fields import RichTextField
46
5-
67class 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 ]
Original file line number Diff line number Diff line change 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" ,
143142MEDIA_URL = "/media/"
144143
145144# Wagtail settings
145+ DATA_UPLOAD_MAX_NUMBER_FIELDS = 10_000
146146WAGTAIL_SITE_NAME = "alloydflanagan"
147147WAGTAILADMIN_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
151151BASE_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+ ]
You can’t perform that action at this time.
0 commit comments