Skip to content

Commit

Permalink
Move prefer 45 min to pycontw2021.py
Browse files Browse the repository at this point in the history
  • Loading branch information
alice6373 committed Feb 5, 2021
1 parent ecc99b3 commit 25e3e5c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/pycontw2016/settings/production/pycontw2021.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@
MEDIA_URL = '/2021/media/'

CONFERENCE_DEFAULT_SLUG = 'pycontw-2021'

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,
)
Expand Down
9 changes: 9 additions & 0 deletions src/pycontw2016/settings/testing/pycontw2021.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
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-2021'

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

0 comments on commit 25e3e5c

Please sign in to comment.