2020-12-27 10:49:54 +00:00
|
|
|
# Copyright (C) 2020 by Animath
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
|
|
"""
|
|
|
|
Django settings for tfjm project.
|
|
|
|
|
|
|
|
Generated by 'django-admin startproject' using Django 3.0.5.
|
|
|
|
|
|
|
|
For more information on this file, see
|
2024-06-02 17:47:35 +00:00
|
|
|
https://docs.djangoproject.com/en/5.0/topics/settings/
|
2020-12-27 10:49:54 +00:00
|
|
|
|
|
|
|
For the full list of settings and their values, see
|
2024-06-02 17:47:35 +00:00
|
|
|
https://docs.djangoproject.com/en/5.0/ref/settings/
|
2020-12-27 10:49:54 +00:00
|
|
|
"""
|
|
|
|
|
2024-10-28 18:39:31 +00:00
|
|
|
from datetime import datetime
|
2020-12-27 10:49:54 +00:00
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
|
|
|
|
from django.utils.translation import gettext_lazy as _
|
|
|
|
|
|
|
|
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
|
|
|
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
|
|
|
PROJECT_DIR = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
|
|
|
|
|
2023-02-19 18:25:37 +00:00
|
|
|
ADMINS = [("Emmy D'Anello", "emmy.danello@animath.fr")]
|
2020-12-27 10:49:54 +00:00
|
|
|
|
|
|
|
# Quick-start development settings - unsuitable for production
|
2024-06-02 17:47:35 +00:00
|
|
|
# See https://docs.djangoproject.com/en/5.0/howto/deployment/checklist/
|
2020-12-27 10:49:54 +00:00
|
|
|
|
|
|
|
# SECURITY WARNING: keep the secret key used in production secret!
|
2024-01-13 18:58:15 +00:00
|
|
|
SECRET_KEY = os.getenv('DJANGO_SECRET_KEY', 'CHANGE_ME_IN_ENV_SETTINGS')
|
2020-12-27 10:49:54 +00:00
|
|
|
|
2024-02-20 17:51:38 +00:00
|
|
|
# dev in development mode, prod in production mode
|
|
|
|
TFJM_STAGE = os.getenv('TFJM_STAGE', 'dev')
|
|
|
|
|
2020-12-27 10:49:54 +00:00
|
|
|
# SECURITY WARNING: don't run with debug turned on in production!
|
2024-02-20 17:51:38 +00:00
|
|
|
DEBUG = TFJM_STAGE != "prod"
|
2020-12-27 10:49:54 +00:00
|
|
|
|
|
|
|
SITE_ID = 1
|
|
|
|
|
|
|
|
ALLOWED_HOSTS = ['*']
|
|
|
|
|
|
|
|
# Application definition
|
|
|
|
|
|
|
|
INSTALLED_APPS = [
|
2023-03-22 14:24:15 +00:00
|
|
|
'daphne',
|
|
|
|
|
2020-12-27 10:49:54 +00:00
|
|
|
'django.contrib.admin',
|
2023-04-04 17:52:44 +00:00
|
|
|
'django.contrib.admindocs',
|
2020-12-27 10:49:54 +00:00
|
|
|
'django.contrib.auth',
|
|
|
|
'django.contrib.contenttypes',
|
|
|
|
'django.contrib.sessions',
|
|
|
|
'django.contrib.sites',
|
|
|
|
'django.contrib.messages',
|
|
|
|
'django.contrib.staticfiles',
|
|
|
|
'django.forms',
|
|
|
|
|
2023-03-22 14:24:15 +00:00
|
|
|
'channels',
|
2020-12-27 10:49:54 +00:00
|
|
|
'crispy_forms',
|
2023-02-20 13:52:25 +00:00
|
|
|
'crispy_bootstrap5',
|
2021-01-23 12:43:31 +00:00
|
|
|
'django_filters',
|
2020-12-27 10:49:54 +00:00
|
|
|
'django_tables2',
|
|
|
|
'haystack',
|
|
|
|
'logs',
|
2020-12-28 22:59:21 +00:00
|
|
|
'phonenumber_field',
|
2024-06-02 17:47:35 +00:00
|
|
|
'pipeline',
|
2020-12-27 10:49:54 +00:00
|
|
|
'polymorphic',
|
|
|
|
'rest_framework',
|
|
|
|
'rest_framework.authtoken',
|
|
|
|
|
|
|
|
'api',
|
2024-04-22 22:22:18 +00:00
|
|
|
'chat',
|
2023-03-22 11:26:27 +00:00
|
|
|
'draw',
|
2020-12-27 10:49:54 +00:00
|
|
|
'registration',
|
|
|
|
'participation',
|
|
|
|
]
|
|
|
|
|
2020-12-28 18:28:53 +00:00
|
|
|
if "test" not in sys.argv: # pragma: no cover
|
2020-12-27 10:49:54 +00:00
|
|
|
INSTALLED_APPS += [
|
|
|
|
'django_extensions',
|
|
|
|
'mailer',
|
|
|
|
]
|
|
|
|
|
2024-02-20 17:51:38 +00:00
|
|
|
if TFJM_STAGE == "prod": # pragma: no cover
|
2023-04-11 21:05:58 +00:00
|
|
|
INSTALLED_APPS += [
|
|
|
|
'channels_redis',
|
|
|
|
]
|
|
|
|
|
2020-12-27 10:49:54 +00:00
|
|
|
MIDDLEWARE = [
|
|
|
|
'django.middleware.security.SecurityMiddleware',
|
|
|
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
|
|
|
'django.middleware.common.CommonMiddleware',
|
|
|
|
'django.middleware.csrf.CsrfViewMiddleware',
|
|
|
|
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
|
|
|
'django.contrib.messages.middleware.MessageMiddleware',
|
|
|
|
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
|
|
|
'django.middleware.locale.LocaleMiddleware',
|
|
|
|
'django.contrib.sites.middleware.CurrentSiteMiddleware',
|
2024-06-02 17:47:35 +00:00
|
|
|
'django.middleware.gzip.GZipMiddleware',
|
|
|
|
'pipeline.middleware.MinifyHTMLMiddleware',
|
2020-12-27 10:49:54 +00:00
|
|
|
'tfjm.middlewares.SessionMiddleware',
|
2023-02-20 16:53:45 +00:00
|
|
|
'tfjm.middlewares.FetchMiddleware',
|
2020-12-27 10:49:54 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
ROOT_URLCONF = 'tfjm.urls'
|
|
|
|
|
|
|
|
LOGIN_REDIRECT_URL = "index"
|
2024-04-28 09:57:25 +00:00
|
|
|
LOGOUT_REDIRECT_URL = "login"
|
2020-12-27 10:49:54 +00:00
|
|
|
|
|
|
|
TEMPLATES = [
|
|
|
|
{
|
|
|
|
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
|
|
|
'DIRS': [os.path.join(BASE_DIR, 'tfjm/templates')],
|
|
|
|
'APP_DIRS': True,
|
|
|
|
'OPTIONS': {
|
|
|
|
'context_processors': [
|
|
|
|
'django.template.context_processors.debug',
|
|
|
|
'django.template.context_processors.request',
|
|
|
|
'django.contrib.auth.context_processors.auth',
|
|
|
|
'django.contrib.messages.context_processors.messages',
|
2024-06-07 11:51:24 +00:00
|
|
|
'tfjm.context_processors.tfjm_context',
|
2020-12-27 10:49:54 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
]
|
|
|
|
|
|
|
|
FORM_RENDERER = 'django.forms.renderers.TemplatesSetting'
|
|
|
|
|
2023-03-22 14:24:15 +00:00
|
|
|
ASGI_APPLICATION = 'tfjm.asgi.application'
|
2020-12-27 10:49:54 +00:00
|
|
|
WSGI_APPLICATION = 'tfjm.wsgi.application'
|
|
|
|
|
|
|
|
# Password validation
|
2024-06-02 17:47:35 +00:00
|
|
|
# https://docs.djangoproject.com/en/5.0/ref/settings/#auth-password-validators
|
2020-12-27 10:49:54 +00:00
|
|
|
|
|
|
|
AUTH_PASSWORD_VALIDATORS = [
|
|
|
|
{
|
|
|
|
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
|
|
|
|
},
|
|
|
|
]
|
|
|
|
|
|
|
|
PASSWORD_HASHERS = [
|
|
|
|
'django.contrib.auth.hashers.PBKDF2PasswordHasher',
|
|
|
|
'django.contrib.auth.hashers.BCryptPasswordHasher',
|
|
|
|
]
|
|
|
|
|
|
|
|
REST_FRAMEWORK = {
|
|
|
|
'DEFAULT_PERMISSION_CLASSES': [
|
|
|
|
'rest_framework.permissions.IsAdminUser'
|
|
|
|
],
|
|
|
|
'DEFAULT_AUTHENTICATION_CLASSES': [
|
|
|
|
'rest_framework.authentication.SessionAuthentication',
|
|
|
|
'rest_framework.authentication.TokenAuthentication',
|
|
|
|
],
|
|
|
|
'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination',
|
|
|
|
'PAGE_SIZE': 50,
|
|
|
|
}
|
|
|
|
|
|
|
|
# Internationalization
|
2024-06-02 17:47:35 +00:00
|
|
|
# https://docs.djangoproject.com/en/5.0/topics/i18n/
|
2020-12-27 10:49:54 +00:00
|
|
|
|
|
|
|
LANGUAGE_CODE = 'en'
|
|
|
|
|
|
|
|
LANGUAGES = [
|
|
|
|
('en', _('English')),
|
|
|
|
('fr', _('French')),
|
|
|
|
]
|
|
|
|
|
|
|
|
TIME_ZONE = 'Europe/Paris'
|
|
|
|
|
|
|
|
USE_I18N = True
|
|
|
|
|
|
|
|
USE_L10N = True
|
|
|
|
|
|
|
|
USE_TZ = True
|
|
|
|
|
|
|
|
LOCALE_PATHS = [os.path.join(BASE_DIR, "locale")]
|
|
|
|
|
|
|
|
# Static files (CSS, JavaScript, Images)
|
2024-06-02 17:47:35 +00:00
|
|
|
# https://docs.djangoproject.com/en/5.0/howto/static-files/
|
2020-12-27 10:49:54 +00:00
|
|
|
|
|
|
|
STATIC_URL = '/static/'
|
|
|
|
|
|
|
|
STATICFILES_DIRS = [
|
|
|
|
os.path.join(BASE_DIR, "tfjm/static"),
|
|
|
|
]
|
|
|
|
|
|
|
|
STATIC_ROOT = os.path.join(BASE_DIR, "static")
|
|
|
|
|
2024-10-28 22:40:13 +00:00
|
|
|
STORAGES = {
|
2024-10-28 22:45:36 +00:00
|
|
|
"default": {
|
|
|
|
"BACKEND": "django.core.files.storage.FileSystemStorage",
|
|
|
|
},
|
2024-10-28 22:40:13 +00:00
|
|
|
'staticfiles': {
|
|
|
|
'BACKEND': 'pipeline.storage.PipelineStorage',
|
|
|
|
},
|
|
|
|
}
|
2024-06-02 17:47:35 +00:00
|
|
|
|
|
|
|
STATICFILES_FINDERS = (
|
|
|
|
'django.contrib.staticfiles.finders.FileSystemFinder',
|
|
|
|
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
|
|
|
|
'pipeline.finders.PipelineFinder',
|
|
|
|
)
|
|
|
|
|
|
|
|
PIPELINE = {
|
|
|
|
'DISABLE_WRAPPER': True,
|
|
|
|
'JAVASCRIPT': {
|
|
|
|
'main': {
|
|
|
|
'source_filenames': (
|
|
|
|
'tfjm/js/main.js',
|
|
|
|
'tfjm/js/theme.js',
|
|
|
|
),
|
|
|
|
'output_filename': 'tfjm/js/main.min.js',
|
|
|
|
},
|
|
|
|
'theme': {
|
|
|
|
'source_filenames': (
|
|
|
|
'tfjm/js/theme.js',
|
|
|
|
),
|
|
|
|
'output_filename': 'tfjm/js/theme.min.js',
|
|
|
|
},
|
|
|
|
'chat': {
|
|
|
|
'source_filenames': (
|
|
|
|
'tfjm/js/chat.js',
|
|
|
|
),
|
|
|
|
'output_filename': 'tfjm/js/chat.min.js',
|
|
|
|
},
|
|
|
|
'draw': {
|
|
|
|
'source_filenames': (
|
|
|
|
'tfjm/js/draw.js',
|
|
|
|
),
|
|
|
|
'output_filename': 'tfjm/js/draw.min.js',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2020-12-27 10:49:54 +00:00
|
|
|
MEDIA_URL = '/media/'
|
|
|
|
|
|
|
|
MEDIA_ROOT = os.path.join(BASE_DIR, "media")
|
|
|
|
|
2022-02-04 14:25:40 +00:00
|
|
|
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
|
|
|
|
|
2023-04-05 14:54:16 +00:00
|
|
|
CRISPY_ALLOWED_TEMPLATE_PACKS = 'bootstrap5'
|
2023-02-20 13:52:25 +00:00
|
|
|
CRISPY_TEMPLATE_PACK = 'bootstrap5'
|
2020-12-27 10:49:54 +00:00
|
|
|
|
2023-02-20 13:52:25 +00:00
|
|
|
DJANGO_TABLES2_TEMPLATE = 'django_tables2/bootstrap5.html'
|
2020-12-27 10:49:54 +00:00
|
|
|
|
|
|
|
HAYSTACK_CONNECTIONS = {
|
|
|
|
'default': {
|
2024-01-16 21:36:25 +00:00
|
|
|
'ENGINE': 'haystack.backends.elasticsearch7_backend.Elasticsearch7SearchEngine'
|
|
|
|
if os.getenv("HAYSTACK_INDEX_NAME", None) else 'haystack.backends.simple_backend.SimpleEngine',
|
|
|
|
'URL': 'http://elasticsearch:9200/',
|
|
|
|
'INDEX_NAME': os.getenv('HAYSTACK_INDEX_NAME', 'inscription-tfjm'),
|
2020-12-27 10:49:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-01-20 17:41:06 +00:00
|
|
|
HAYSTACK_SIGNAL_PROCESSOR = 'haystack.signals.RealtimeSignalProcessor' if os.getenv("HAYSTACK_INDEX_NAME", None) \
|
|
|
|
else 'haystack.signals.BaseSignalProcessor'
|
2024-01-18 18:58:06 +00:00
|
|
|
|
2020-12-27 10:49:54 +00:00
|
|
|
_db_type = os.getenv('DJANGO_DB_TYPE', 'sqlite').lower()
|
|
|
|
|
|
|
|
if _db_type == 'mysql' or _db_type.startswith('postgres') or _db_type == 'psql': # pragma: no cover
|
|
|
|
DATABASES = {
|
|
|
|
'default': {
|
2024-10-21 17:33:47 +00:00
|
|
|
'ENGINE': 'django.db.backends.mysql' if _db_type == 'mysql' else 'django.db.backends.postgresql',
|
2020-12-27 10:49:54 +00:00
|
|
|
'NAME': os.environ.get('DJANGO_DB_NAME', 'tfjm'),
|
|
|
|
'USER': os.environ.get('DJANGO_DB_USER', 'tfjm'),
|
|
|
|
'PASSWORD': os.environ.get('DJANGO_DB_PASSWORD', 'CHANGE_ME_IN_ENV_SETTINGS'),
|
|
|
|
'HOST': os.environ.get('DJANGO_DB_HOST', 'localhost'),
|
|
|
|
'PORT': os.environ.get('DJANGO_DB_PORT', ''), # Use default port
|
|
|
|
}
|
|
|
|
}
|
2023-04-07 20:02:37 +00:00
|
|
|
|
|
|
|
# Connections expire after 10 seconds
|
|
|
|
CONN_MAX_AGE = 10
|
|
|
|
CONN_HEALTH_CHECKS = True
|
2020-12-27 10:49:54 +00:00
|
|
|
else:
|
|
|
|
DATABASES = {
|
|
|
|
'default': {
|
|
|
|
'ENGINE': 'django.db.backends.sqlite3',
|
|
|
|
'NAME': os.path.join(BASE_DIR, os.getenv('DJANGO_DB_HOST', 'db.sqlite3')),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-07 11:51:24 +00:00
|
|
|
CHANNEL_LAYERS = {
|
|
|
|
"default": {
|
|
|
|
"BACKEND": "channels.layers.InMemoryChannelLayer"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-28 22:59:21 +00:00
|
|
|
# Custom phone number format
|
|
|
|
PHONENUMBER_DB_FORMAT = 'NATIONAL'
|
|
|
|
PHONENUMBER_DEFAULT_REGION = 'FR'
|
|
|
|
|
2024-02-18 23:17:14 +00:00
|
|
|
# Hello Asso API creds
|
|
|
|
HELLOASSO_CLIENT_ID = os.getenv('HELLOASSO_CLIENT_ID', 'CHANGE_ME_IN_ENV_SETTINGS')
|
|
|
|
HELLOASSO_CLIENT_SECRET = os.getenv('HELLOASSO_CLIENT_SECRET', 'CHANGE_ME_IN_ENV_SETTINGS')
|
2024-02-25 16:24:52 +00:00
|
|
|
HELLOASSO_TEST_ENDPOINT = False # Enable custom test endpoint, for unit tests
|
2020-12-31 11:13:42 +00:00
|
|
|
|
2024-03-30 12:41:46 +00:00
|
|
|
GOOGLE_SERVICE_CLIENT = {
|
|
|
|
"type": "service_account",
|
|
|
|
"project_id": os.getenv("GOOGLE_PROJECT_ID", "plateforme-tfjm"),
|
|
|
|
"private_key_id": os.getenv("GOOGLE_PRIVATE_KEY_ID", "CHANGE_ME_IN_ENV_SETTINGS"),
|
|
|
|
"private_key": os.getenv("GOOGLE_PRIVATE_KEY", "CHANGE_ME_IN_ENV_SETTINGS").replace("\\n", "\n"),
|
|
|
|
"client_email": os.getenv("GOOGLE_CLIENT_EMAIL", "CHANGE_ME_IN_ENV_SETTINGS"),
|
|
|
|
"client_id": os.getenv("GOOGLE_CLIENT_ID", "CHANGE_ME_IN_ENV_SETTINGS"),
|
|
|
|
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
|
|
|
|
"token_uri": "https://oauth2.googleapis.com/token",
|
|
|
|
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
|
|
|
|
"client_x509_cert_url": os.getenv("GOOGLE_CLIENT_X509_CERT_URL", "CHANGE_ME_IN_ENV_SETTINGS"),
|
|
|
|
"universe_domain": "googleapis.com"
|
|
|
|
}
|
|
|
|
|
|
|
|
# The ID of the Google Drive folder where to store the notation sheets
|
|
|
|
NOTES_DRIVE_FOLDER_ID = os.getenv("NOTES_DRIVE_FOLDER_ID", "CHANGE_ME_IN_ENV_SETTINGS")
|
|
|
|
|
2021-01-12 17:02:00 +00:00
|
|
|
# Custom parameters
|
2023-02-19 18:49:03 +00:00
|
|
|
FORBIDDEN_TRIGRAMS = [
|
|
|
|
"BIT",
|
|
|
|
"CNO",
|
|
|
|
"CRO",
|
|
|
|
"CUL",
|
|
|
|
"FTG",
|
|
|
|
"FCK",
|
|
|
|
"FUC",
|
|
|
|
"FUK",
|
|
|
|
"FYS",
|
|
|
|
"HIV",
|
|
|
|
"IST",
|
|
|
|
"MST",
|
|
|
|
"KKK",
|
|
|
|
"KYS",
|
|
|
|
"SEX",
|
|
|
|
]
|
|
|
|
|
2024-06-07 11:51:24 +00:00
|
|
|
TFJM_APP = os.getenv("TFJM_APP", "TFJM") # Change to ETEAM for the ETEAM tournament
|
2023-03-22 14:24:15 +00:00
|
|
|
|
2024-02-20 17:51:38 +00:00
|
|
|
if TFJM_STAGE == "prod": # pragma: no cover
|
2024-01-16 21:36:25 +00:00
|
|
|
from .settings_prod import * # noqa: F401,F403
|
2023-02-19 18:49:03 +00:00
|
|
|
else:
|
2024-01-16 21:36:25 +00:00
|
|
|
from .settings_dev import * # noqa: F401,F403
|
2024-02-24 07:45:59 +00:00
|
|
|
|
|
|
|
try:
|
2024-02-24 08:22:27 +00:00
|
|
|
from .settings_local import * # noqa: F401,F403
|
2024-02-24 07:45:59 +00:00
|
|
|
except ImportError:
|
|
|
|
pass
|
2024-06-07 12:18:25 +00:00
|
|
|
|
|
|
|
if TFJM_APP == "TFJM":
|
2024-06-07 15:20:06 +00:00
|
|
|
PREFERRED_LANGUAGE_CODE = 'fr'
|
2024-06-07 22:19:33 +00:00
|
|
|
APP_NAME = "TFJM²"
|
2024-06-07 12:18:25 +00:00
|
|
|
TEAM_CODE_LENGTH = 3
|
|
|
|
RECOMMENDED_SOLUTIONS_COUNT = 5
|
|
|
|
NB_ROUNDS = 2
|
2024-10-20 18:13:49 +00:00
|
|
|
HAS_OBSERVER = False
|
2024-07-06 08:16:54 +00:00
|
|
|
HAS_FINAL = True
|
2024-06-07 14:35:08 +00:00
|
|
|
ML_MANAGEMENT = True
|
|
|
|
PAYMENT_MANAGEMENT = True
|
2024-10-21 17:20:46 +00:00
|
|
|
SINGLE_TOURNAMENT = False
|
2024-06-07 15:20:06 +00:00
|
|
|
HEALTH_SHEET_REQUIRED = True
|
|
|
|
VACCINE_SHEET_REQUIRED = True
|
|
|
|
MOTIVATION_LETTER_REQUIRED = True
|
2024-06-07 16:39:16 +00:00
|
|
|
SUGGEST_ANIMATH = True
|
2024-07-06 21:30:17 +00:00
|
|
|
FIRST_EDITION = 2011
|
2024-10-20 18:13:49 +00:00
|
|
|
HOME_PAGE_LINK = "https://tfjm.org/"
|
|
|
|
LOGO_FILE = "tfjm.svg"
|
|
|
|
RULES_LINK = "https://tfjm.org/reglement"
|
2024-06-07 12:18:25 +00:00
|
|
|
|
2024-10-28 18:39:31 +00:00
|
|
|
REGISTRATION_DATES = dict(
|
2024-10-28 22:42:59 +00:00
|
|
|
open=datetime.fromisoformat("2025-01-15T12:00:00+0100"),
|
2024-10-28 18:39:31 +00:00
|
|
|
close=datetime.fromisoformat("2025-03-02T22:00:00+0100"),
|
|
|
|
)
|
|
|
|
|
2024-06-07 12:18:25 +00:00
|
|
|
PROBLEMS = [
|
|
|
|
"Triominos",
|
|
|
|
"Rassemblements mathématiques",
|
|
|
|
"Tournoi de ping-pong",
|
|
|
|
"Dépollution de la Seine",
|
|
|
|
"Électron libre",
|
|
|
|
"Pièces truquées",
|
|
|
|
"Drôles de cookies",
|
|
|
|
"Création d'un jeu",
|
|
|
|
]
|
|
|
|
elif TFJM_APP == "ETEAM":
|
2024-06-07 15:20:06 +00:00
|
|
|
PREFERRED_LANGUAGE_CODE = 'en'
|
2024-06-07 22:44:26 +00:00
|
|
|
APP_NAME = "ETEAM"
|
2024-06-07 12:18:25 +00:00
|
|
|
TEAM_CODE_LENGTH = 4
|
|
|
|
RECOMMENDED_SOLUTIONS_COUNT = 6
|
|
|
|
NB_ROUNDS = 3
|
2024-10-20 18:13:49 +00:00
|
|
|
HAS_OBSERVER = True
|
2024-07-06 08:16:54 +00:00
|
|
|
HAS_FINAL = False
|
2024-06-07 14:35:08 +00:00
|
|
|
ML_MANAGEMENT = False
|
|
|
|
PAYMENT_MANAGEMENT = False
|
2024-10-20 18:13:49 +00:00
|
|
|
SINGLE_TOURNAMENT = True
|
2024-06-07 15:20:06 +00:00
|
|
|
HEALTH_SHEET_REQUIRED = False
|
|
|
|
VACCINE_SHEET_REQUIRED = False
|
|
|
|
MOTIVATION_LETTER_REQUIRED = False
|
2024-06-07 16:39:16 +00:00
|
|
|
SUGGEST_ANIMATH = False
|
2024-07-06 21:30:17 +00:00
|
|
|
FIRST_EDITION = 2024
|
2024-10-20 18:13:49 +00:00
|
|
|
HOME_PAGE_LINK = "https://eteam.tfjm.org/"
|
|
|
|
LOGO_FILE = "eteam.png"
|
|
|
|
RULES_LINK = "https://eteam.tfjm.org/rules/"
|
2024-06-07 12:18:25 +00:00
|
|
|
|
2024-10-28 18:39:31 +00:00
|
|
|
REGISTRATION_DATES = dict(
|
|
|
|
open=datetime.fromisoformat("2024-06-01T12:00:00+0200"),
|
|
|
|
close=datetime.fromisoformat("2024-07-04T20:00:00+0200"),
|
|
|
|
)
|
|
|
|
|
2024-06-07 12:18:25 +00:00
|
|
|
PROBLEMS = [
|
|
|
|
"Exploring Flatland",
|
|
|
|
"A Mazing Hive",
|
|
|
|
"Coin tossing",
|
|
|
|
"The rainbow bridge",
|
|
|
|
"Arithmetic and shopping",
|
|
|
|
"A fence for the goats",
|
|
|
|
"Generalized Tic-Tac-Toe",
|
|
|
|
"Polyhedral construction",
|
|
|
|
"Landing a probe",
|
|
|
|
"Catching the rabbit",
|
|
|
|
]
|
|
|
|
else:
|
|
|
|
raise ValueError(f"Unknown app: {TFJM_APP}")
|