DT
Size: a a a
DT
DT
СГ
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': env('MEMCAHE_LOCATION'),
}
}
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
СГ
DT
СГ
DT
СГ
DT
СГ
A
N
A
LANGUAGES = (
('ru', _('Russian')),
('en', _('English')),
)
LOCALE_PATHS = (
os.path.join(BASE_DIR, 'locale'),
)
A
from django.utils.translation import gettext as _
class ApplicationTournamentForm(ModelForm):
tournament = forms.ModelChoiceField(
label=_('Tournament'),
queryset=Tournament.objects.filter(is_active=True)
)
full_name = forms.CharField(
label=_('Full name'),
max_length=255
)
DT
A
from django.utils.translation import gettext as _
class ApplicationTournamentForm(ModelForm):
tournament = forms.ModelChoiceField(
label=_('Tournament'),
queryset=Tournament.objects.filter(is_active=True)
)
full_name = forms.CharField(
label=_('Full name'),
max_length=255
)
aT