Skip to content

Commit

Permalink
feat(all): Add 2022 config
Browse files Browse the repository at this point in the history
  • Loading branch information
setmao committed Feb 26, 2022
1 parent d0a5e24 commit 05b3611
Show file tree
Hide file tree
Showing 244 changed files with 19,523 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/pycontw2016/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,10 @@ def node_bin(name):
('pycontw-2019', _('PyCon Taiwan 2019')),
('pycontw-2020', _('PyCon Taiwan 2020')),
('pycontw-2021', _('PyCon Taiwan 2021')),
('pycontw-2022', _('PyCon Taiwan 2022')),
]

CONFERENCE_DEFAULT_SLUG = 'pycontw-2021'
CONFERENCE_DEFAULT_SLUG = 'pycontw-2022'
TEMPLATES[0]['DIRS'][1] = os.path.join(
BASE_DIR, 'templates', CONFERENCE_DEFAULT_SLUG,
)
Expand All @@ -322,13 +323,13 @@ def node_bin(name):
)

EVENTS_DAY_NAMES = collections.OrderedDict([
(datetime.date(2021, 10, 2), _('Day 1')),
(datetime.date(2021, 10, 3), _('Day 2')),
(datetime.date(2022, 9, 3), _('Day 1')),
(datetime.date(2022, 9, 4), _('Day 2')),
])

SCHEDULE_REDIRECT_URL = None

COC_VERSION = '2021.0'
COC_VERSION = '2022.0'

# Since 2021, pycon.tw has indivisual server hosting the attendee-facing pages
# (see the repo at https://github.com/pycontw/pycontw-2021) and this config
Expand Down
28 changes: 28 additions & 0 deletions src/pycontw2016/settings/production/pycontw2022.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
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-2022'

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/2022'
22 changes: 22 additions & 0 deletions src/pycontw2016/settings/testing/pycontw2022.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-2022'

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

EVENTS_PUBLISHED = False
Loading

0 comments on commit 05b3611

Please sign in to comment.