Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,5 @@ EXPOSE 8000
CMD ["uwsgi", "--http-socket", ":8000", "--master", \
"--hook-master-start", "unix_signal:15 gracefully_kill_them_all", \
"--static-map", "/static=assets", "--static-map", "/media=media", \
"--mount", "/2025=pycontw2016/wsgi.py", "--manage-script-name", \
"--mount", "/2026=pycontw2016/wsgi.py", "--manage-script-name", \
"--offload-threads", "2"]
12 changes: 6 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ services:
context: .
dockerfile: Dockerfile
target: prod
container_name: pycontw-2025
hostname: pycontw-2025
container_name: pycontw-2026
hostname: pycontw-2026
entrypoint: ""
command:
# Hacky script for quick demonstration purpose
Expand All @@ -29,7 +29,7 @@ services:
restart: always
environment:
# Save us from having to type `--setting=pycontw2016.settings.production`
DJANGO_SETTINGS_MODULE: pycontw2016.settings.production.pycontw2025
DJANGO_SETTINGS_MODULE: pycontw2016.settings.production.pycontw2026
SCRIPT_NAME: /prs
SECRET_KEY: ${SECRET_KEY}
DATABASE_URL: ${DATABASE_URL}
Expand All @@ -40,9 +40,9 @@ services:
volumes:
- ${MEDIA_ROOT}:/usr/local/app/src/media
networks:
- network-2025
- network-2026

networks:
network-2025:
network-2026:
external: true
name: network-2025
name: network-2026
6 changes: 5 additions & 1 deletion src/pycontw2016/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,9 +312,10 @@ def node_bin(name):
('pycontw-2023', _('PyCon Taiwan 2023')),
('pycontw-2024', _('PyCon Taiwan 2024')),
('pycontw-2025', _('PyCon Taiwan 2025')),
('pycontw-2026', _('PyCon Taiwan 2026')),
]

CONFERENCE_DEFAULT_SLUG = 'pycontw-2025'
CONFERENCE_DEFAULT_SLUG = 'pycontw-2026'
TEMPLATES[0]['DIRS'][1] = os.path.join(
BASE_DIR, 'templates', CONFERENCE_DEFAULT_SLUG,
)
Expand All @@ -334,6 +335,9 @@ def node_bin(name):
(datetime.date(2025, 9, 7), _('Day 2')),
])

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

# Since 2021, pycon.tw has indivisual server hosting the attendee-facing pages
Expand Down
29 changes: 29 additions & 0 deletions src/pycontw2016/settings/production/pycontw2026.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import os

from django.utils.translation import gettext_lazy as _

from .base import * # noqa
from .base import BASE_DIR, STATICFILES_DIRS, TEMPLATES

# Override static and media URL for prefix in WSGI server.
# https://code.djangoproject.com/ticket/25598
STATIC_URL = '/prs/static/'
MEDIA_URL = '/prs/media/'

CONFERENCE_DEFAULT_SLUG = 'pycontw-2026'

TALK_PROPOSAL_DURATION_CHOICES = (
('NOPREF', _('No preference')),
('PREF15', _('Prefer 15min')),
('PREF30', _('Prefer 30min')),
('PREF45', _('Prefer 45min')),
)

TEMPLATES[0]['DIRS'][1] = os.path.join(
BASE_DIR, 'templates', CONFERENCE_DEFAULT_SLUG,
)
STATICFILES_DIRS[1] = os.path.join(
BASE_DIR, 'static', CONFERENCE_DEFAULT_SLUG, '_includes',
)

FRONTEND_HOST = 'https://tw.pycon.org/2026'
22 changes: 22 additions & 0 deletions src/pycontw2016/settings/testing/pycontw2026.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import os

from django.utils.translation import gettext_lazy as _

from .base import * # noqa
from .base import BASE_DIR, STATICFILES_DIRS, TEMPLATES

CONFERENCE_DEFAULT_SLUG = 'pycontw-2026'

TALK_PROPOSAL_DURATION_CHOICES = (
('NOPREF', _('No preference')),
('PREF15', _('Prefer 15min')),
('PREF30', _('Prefer 30min')),
('PREF45', _('Prefer 45min')),
)

TEMPLATES[0]['DIRS'][1] = os.path.join(BASE_DIR, 'templates', 'pycontw-2026')
STATICFILES_DIRS[1] = os.path.join(
BASE_DIR, 'static', CONFERENCE_DEFAULT_SLUG, '_includes',
)

EVENTS_PUBLISHED = False
Loading
Loading