Skip to content

Commit f9618c2

Browse files
authored
Merge pull request #1268 from pycontw/migration-2026
feat: 2026 migration
2 parents 0beda46 + 2c4900b commit f9618c2

197 files changed

Lines changed: 13728 additions & 11 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,5 @@ EXPOSE 8000
7878
CMD ["uwsgi", "--http-socket", ":8000", "--master", \
7979
"--hook-master-start", "unix_signal:15 gracefully_kill_them_all", \
8080
"--static-map", "/static=assets", "--static-map", "/media=media", \
81-
"--mount", "/2025=pycontw2016/wsgi.py", "--manage-script-name", \
81+
"--mount", "/2026=pycontw2016/wsgi.py", "--manage-script-name", \
8282
"--offload-threads", "2"]

docker-compose.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ services:
55
context: .
66
dockerfile: Dockerfile
77
target: prod
8-
container_name: pycontw-2025
9-
hostname: pycontw-2025
8+
container_name: pycontw-2026
9+
hostname: pycontw-2026
1010
entrypoint: ""
1111
command:
1212
# Hacky script for quick demonstration purpose
@@ -29,7 +29,7 @@ services:
2929
restart: always
3030
environment:
3131
# Save us from having to type `--setting=pycontw2016.settings.production`
32-
DJANGO_SETTINGS_MODULE: pycontw2016.settings.production.pycontw2025
32+
DJANGO_SETTINGS_MODULE: pycontw2016.settings.production.pycontw2026
3333
SCRIPT_NAME: /prs
3434
SECRET_KEY: ${SECRET_KEY}
3535
DATABASE_URL: ${DATABASE_URL}
@@ -40,9 +40,9 @@ services:
4040
volumes:
4141
- ${MEDIA_ROOT}:/usr/local/app/src/media
4242
networks:
43-
- network-2025
43+
- network-2026
4444

4545
networks:
46-
network-2025:
46+
network-2026:
4747
external: true
48-
name: network-2025
48+
name: network-2026

src/pycontw2016/settings/base.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,10 @@ def node_bin(name):
312312
('pycontw-2023', _('PyCon Taiwan 2023')),
313313
('pycontw-2024', _('PyCon Taiwan 2024')),
314314
('pycontw-2025', _('PyCon Taiwan 2025')),
315+
('pycontw-2026', _('PyCon Taiwan 2026')),
315316
]
316317

317-
CONFERENCE_DEFAULT_SLUG = 'pycontw-2025'
318+
CONFERENCE_DEFAULT_SLUG = 'pycontw-2026'
318319
TEMPLATES[0]['DIRS'][1] = os.path.join(
319320
BASE_DIR, 'templates', CONFERENCE_DEFAULT_SLUG,
320321
)
@@ -334,6 +335,9 @@ def node_bin(name):
334335
(datetime.date(2025, 9, 7), _('Day 2')),
335336
])
336337

338+
# see: https://github.com/pycontw/pycon.tw/pull/1252#discussion_r2190736001
339+
# Changing this value will require all submission system users to agree to the COC content again.
340+
# This is usually only necessary when the COC content has been modified.
337341
COC_VERSION = '2024.0'
338342

339343
# Since 2021, pycon.tw has indivisual server hosting the attendee-facing pages
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import os
2+
3+
from django.utils.translation import gettext_lazy as _
4+
5+
from .base import * # noqa
6+
from .base import BASE_DIR, STATICFILES_DIRS, TEMPLATES
7+
8+
# Override static and media URL for prefix in WSGI server.
9+
# https://code.djangoproject.com/ticket/25598
10+
STATIC_URL = '/prs/static/'
11+
MEDIA_URL = '/prs/media/'
12+
13+
CONFERENCE_DEFAULT_SLUG = 'pycontw-2026'
14+
15+
TALK_PROPOSAL_DURATION_CHOICES = (
16+
('NOPREF', _('No preference')),
17+
('PREF15', _('Prefer 15min')),
18+
('PREF30', _('Prefer 30min')),
19+
('PREF45', _('Prefer 45min')),
20+
)
21+
22+
TEMPLATES[0]['DIRS'][1] = os.path.join(
23+
BASE_DIR, 'templates', CONFERENCE_DEFAULT_SLUG,
24+
)
25+
STATICFILES_DIRS[1] = os.path.join(
26+
BASE_DIR, 'static', CONFERENCE_DEFAULT_SLUG, '_includes',
27+
)
28+
29+
FRONTEND_HOST = 'https://tw.pycon.org/2026'
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import os
2+
3+
from django.utils.translation import gettext_lazy as _
4+
5+
from .base import * # noqa
6+
from .base import BASE_DIR, STATICFILES_DIRS, TEMPLATES
7+
8+
CONFERENCE_DEFAULT_SLUG = 'pycontw-2026'
9+
10+
TALK_PROPOSAL_DURATION_CHOICES = (
11+
('NOPREF', _('No preference')),
12+
('PREF15', _('Prefer 15min')),
13+
('PREF30', _('Prefer 30min')),
14+
('PREF45', _('Prefer 45min')),
15+
)
16+
17+
TEMPLATES[0]['DIRS'][1] = os.path.join(BASE_DIR, 'templates', 'pycontw-2026')
18+
STATICFILES_DIRS[1] = os.path.join(
19+
BASE_DIR, 'static', CONFERENCE_DEFAULT_SLUG, '_includes',
20+
)
21+
22+
EVENTS_PUBLISHED = False

0 commit comments

Comments
 (0)