Skip to content

Commit

Permalink
feat(pycontw-2023): add pycontw-2023
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Tsai committed Jan 5, 2023
1 parent 2970d1f commit 3c15129
Show file tree
Hide file tree
Showing 241 changed files with 18,666 additions and 5 deletions.
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ version: "3.5"
services:
web:
build: .
container_name: pycontw-2022
hostname: pycontw-2022
container_name: pycontw-2023
hostname: pycontw-2023
entrypoint: ""
command:
# Hacky script for quick demonstration purpose
Expand All @@ -26,7 +26,7 @@ services:
restart: always
environment:
# Save us from having to type `--setting=pycontw2016.settings.production`
DJANGO_SETTINGS_MODULE: pycontw2016.settings.production.pycontw2022
DJANGO_SETTINGS_MODULE: pycontw2016.settings.production.pycontw2023
SCRIPT_NAME: /prs
SECRET_KEY: ${SECRET_KEY}
DATABASE_URL: ${DATABASE_URL}
Expand All @@ -43,4 +43,4 @@ services:
networks:
network:
external: true
name: network-2022
name: network-2023
3 changes: 2 additions & 1 deletion src/pycontw2016/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,10 @@ def node_bin(name):
('pycontw-2020', _('PyCon Taiwan 2020')),
('pycontw-2021', _('PyCon Taiwan 2021')),
('pycontw-2022', _('PyCon Taiwan 2022')),
('pycontw-2023', _('PyCon Taiwan 2023')),
]

CONFERENCE_DEFAULT_SLUG = 'pycontw-2022'
CONFERENCE_DEFAULT_SLUG = 'pycontw-2023'
TEMPLATES[0]['DIRS'][1] = os.path.join(
BASE_DIR, 'templates', CONFERENCE_DEFAULT_SLUG,
)
Expand Down
27 changes: 27 additions & 0 deletions src/pycontw2016/settings/production/pycontw2023.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import os
from django.utils.translation import gettext_lazy as _
from .base import BASE_DIR, STATICFILES_DIRS, TEMPLATES
from .base import * # noqa

# 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-2023'

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/2023'
22 changes: 22 additions & 0 deletions src/pycontw2016/settings/testing/pycontw2023.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 BASE_DIR, STATICFILES_DIRS, TEMPLATES
from .base import * # noqa


CONFERENCE_DEFAULT_SLUG = 'pycontw-2023'

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-2023')
STATICFILES_DIRS[1] = os.path.join(
BASE_DIR, 'static', CONFERENCE_DEFAULT_SLUG, '_includes',
)

EVENTS_PUBLISHED = False
Loading

0 comments on commit 3c15129

Please sign in to comment.