mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-01 00:24:29 +01:00 
			
		
		
		
	Compare commits
	
		
			6 Commits
		
	
	
		
			e6af5ec185
			...
			3b308fa13d
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 3b308fa13d | |||
|  | d24f8cab16 | ||
|  | 6cdf6331db | ||
|  | 65c6158b52 | ||
|  | 4a5f48a834 | ||
|  | 4ab706d219 | 
| @@ -7,7 +7,7 @@ py311: | |||||||
|   image: python:3.11-alpine |   image: python:3.11-alpine | ||||||
|   before_script: |   before_script: | ||||||
|     - apk add --no-cache libmagic |     - apk add --no-cache libmagic | ||||||
|     - apk add --no-cache gettext git  # Useful for django-haystack, remove when the newer versions are in PyPI |     - apk add --no-cache gettext | ||||||
|     - pip install tox --no-cache-dir |     - pip install tox --no-cache-dir | ||||||
|   script: tox -e py311 |   script: tox -e py311 | ||||||
|  |  | ||||||
| @@ -16,10 +16,19 @@ py312: | |||||||
|   image: python:3.12-alpine |   image: python:3.12-alpine | ||||||
|   before_script: |   before_script: | ||||||
|     - apk add --no-cache libmagic |     - apk add --no-cache libmagic | ||||||
|     - apk add --no-cache gettext git  # Useful for django-haystack, remove when the newer versions are in PyPI |     - apk add --no-cache gettext | ||||||
|     - pip install tox --no-cache-dir |     - pip install tox --no-cache-dir | ||||||
|   script: tox -e py312 |   script: tox -e py312 | ||||||
|  |  | ||||||
|  | py313: | ||||||
|  |   stage: test | ||||||
|  |   image: python:3.13-alpine | ||||||
|  |   before_script: | ||||||
|  |     - apk add --no-cache libmagic | ||||||
|  |     - apk add --no-cache gettext | ||||||
|  |     - pip install tox --no-cache-dir | ||||||
|  |   script: tox -e py313 | ||||||
|  |  | ||||||
| linters: | linters: | ||||||
|   stage: quality-assurance |   stage: quality-assurance | ||||||
|   image: python:3-alpine |   image: python:3-alpine | ||||||
|   | |||||||
| @@ -1,4 +1,4 @@ | |||||||
| FROM python:3.12-alpine | FROM python:3.13-alpine | ||||||
|  |  | ||||||
| ENV PYTHONUNBUFFERED 1 | ENV PYTHONUNBUFFERED 1 | ||||||
| ENV DJANGO_ALLOW_ASYNC_UNSAFE 1 | ENV DJANGO_ALLOW_ASYNC_UNSAFE 1 | ||||||
|   | |||||||
| @@ -10,4 +10,4 @@ def register_registration_urls(router, path): | |||||||
|     """ |     """ | ||||||
|     router.register(path + "/payment", PaymentViewSet) |     router.register(path + "/payment", PaymentViewSet) | ||||||
|     router.register(path + "/registration", RegistrationViewSet) |     router.register(path + "/registration", RegistrationViewSet) | ||||||
|     router.register(path + "/volunteers", VolunteersViewSet) |     router.register(path + "/volunteers", VolunteersViewSet, basename="volunteers") | ||||||
|   | |||||||
| @@ -1,29 +1,29 @@ | |||||||
| channels[daphne]~=4.0.0 | channels[daphne]~=4.1.0 | ||||||
| channels-redis~=4.2.0 | channels-redis~=4.2.0 | ||||||
| crispy-bootstrap5~=2023.10 | crispy-bootstrap5~=2024.10 | ||||||
| Django>=5.0.3,<6.0 | Django>=5.1.2,<6.0 | ||||||
| django-crispy-forms~=2.1 | django-crispy-forms~=2.3 | ||||||
| django-extensions~=3.2.3 | django-extensions~=3.2.3 | ||||||
| django-filter~=23.5 | django-filter~=24.3 | ||||||
| git+https://github.com/django-haystack/django-haystack.git#v3.3b2 | django-haystack~=3.3.0 | ||||||
| django-mailer~=2.3.1 | django-mailer~=2.3.2 | ||||||
| django-phonenumber-field~=7.3.0 | django-phonenumber-field~=8.0.0 | ||||||
| django-pipeline~=3.1.0 | django-pipeline~=3.1.0 | ||||||
| django-polymorphic~=3.1.0 | django-polymorphic~=3.1.0 | ||||||
| django-tables2~=2.7.0 | django-tables2~=2.7.0 | ||||||
| djangorestframework~=3.14.0 | djangorestframework~=3.15.2 | ||||||
| django-rest-polymorphic~=0.1.10 | django-rest-polymorphic~=0.1.10 | ||||||
| elasticsearch~=7.17.9 | elasticsearch~=7.17.9 | ||||||
| gspread~=6.1.0 | gspread~=6.1.4 | ||||||
| gunicorn~=21.2.0 | gunicorn~=23.0.0 | ||||||
| odfpy~=1.4.1 | odfpy~=1.4.1 | ||||||
| pandas~=2.2.1 | pandas~=2.2.3 | ||||||
| phonenumbers~=8.13.27 | phonenumbers~=8.13.47 | ||||||
| psycopg2-binary~=2.9.9 | psycopg-binary~=3.2.3 | ||||||
| pypdf~=3.17.4 | pypdf~=5.0.1 | ||||||
| ipython~=8.20.0 | ipython~=8.28.0 | ||||||
| python-magic~=0.4.27 | python-magic~=0.4.27 | ||||||
| requests~=2.31.0 | requests~=2.32.3 | ||||||
| sympasoap~=1.1 | sympasoap~=1.1 | ||||||
| uvicorn~=0.25.0 | uvicorn~=0.32.0 | ||||||
| websockets~=12.0 | websockets~=13.1 | ||||||
| @@ -18,11 +18,12 @@ def tfjm_context(request): | |||||||
|             'ML_MANAGEMENT': settings.ML_MANAGEMENT, |             'ML_MANAGEMENT': settings.ML_MANAGEMENT, | ||||||
|             'PAYMENT_MANAGEMENT': settings.PAYMENT_MANAGEMENT, |             'PAYMENT_MANAGEMENT': settings.PAYMENT_MANAGEMENT, | ||||||
|             'RECOMMENDED_SOLUTIONS_COUNT': settings.RECOMMENDED_SOLUTIONS_COUNT, |             'RECOMMENDED_SOLUTIONS_COUNT': settings.RECOMMENDED_SOLUTIONS_COUNT, | ||||||
|             'SINGLE_TOURNAMENT': |             'SINGLE_TOURNAMENT': settings.SINGLE_TOURNAMENT, | ||||||
|                 Tournament.objects.first() if Tournament.objects.exists() and settings.SINGLE_TOURNAMENT else None, |  | ||||||
|             'HEALTH_SHEET_REQUIRED': settings.HEALTH_SHEET_REQUIRED, |             'HEALTH_SHEET_REQUIRED': settings.HEALTH_SHEET_REQUIRED, | ||||||
|             'VACCINE_SHEET_REQUIRED': settings.VACCINE_SHEET_REQUIRED, |             'VACCINE_SHEET_REQUIRED': settings.VACCINE_SHEET_REQUIRED, | ||||||
|             'MOTIVATION_LETTER_REQUIRED': settings.MOTIVATION_LETTER_REQUIRED, |             'MOTIVATION_LETTER_REQUIRED': settings.MOTIVATION_LETTER_REQUIRED, | ||||||
|             'SUGGEST_ANIMATH': settings.SUGGEST_ANIMATH, |             'SUGGEST_ANIMATH': settings.SUGGEST_ANIMATH, | ||||||
|         } |         }, | ||||||
|  |         'TFJM_TOURNAMENT': | ||||||
|  |             Tournament.objects.first() if Tournament.objects.exists() and settings.SINGLE_TOURNAMENT else None, | ||||||
|     } |     } | ||||||
|   | |||||||
| @@ -262,7 +262,7 @@ _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 | if _db_type == 'mysql' or _db_type.startswith('postgres') or _db_type == 'psql':  # pragma: no cover | ||||||
|     DATABASES = { |     DATABASES = { | ||||||
|         'default': { |         'default': { | ||||||
|             'ENGINE': 'django.db.backends.mysql' if _db_type == 'mysql' else 'django.db.backends.postgresql_psycopg2', |             'ENGINE': 'django.db.backends.mysql' if _db_type == 'mysql' else 'django.db.backends.postgresql', | ||||||
|             'NAME': os.environ.get('DJANGO_DB_NAME', 'tfjm'), |             'NAME': os.environ.get('DJANGO_DB_NAME', 'tfjm'), | ||||||
|             'USER': os.environ.get('DJANGO_DB_USER', 'tfjm'), |             'USER': os.environ.get('DJANGO_DB_USER', 'tfjm'), | ||||||
|             'PASSWORD': os.environ.get('DJANGO_DB_PASSWORD', 'CHANGE_ME_IN_ENV_SETTINGS'), |             'PASSWORD': os.environ.get('DJANGO_DB_PASSWORD', 'CHANGE_ME_IN_ENV_SETTINGS'), | ||||||
| @@ -355,7 +355,7 @@ if TFJM_APP == "TFJM": | |||||||
|     HAS_FINAL = True |     HAS_FINAL = True | ||||||
|     ML_MANAGEMENT = True |     ML_MANAGEMENT = True | ||||||
|     PAYMENT_MANAGEMENT = True |     PAYMENT_MANAGEMENT = True | ||||||
|     SINGLE_TOURNAMENT = True |     SINGLE_TOURNAMENT = False | ||||||
|     HEALTH_SHEET_REQUIRED = True |     HEALTH_SHEET_REQUIRED = True | ||||||
|     VACCINE_SHEET_REQUIRED = True |     VACCINE_SHEET_REQUIRED = True | ||||||
|     MOTIVATION_LETTER_REQUIRED = True |     MOTIVATION_LETTER_REQUIRED = True | ||||||
|   | |||||||
| @@ -94,7 +94,7 @@ | |||||||
|  |  | ||||||
| {% javascript 'main' %} | {% javascript 'main' %} | ||||||
|  |  | ||||||
| {{ TFJM|json_script:TFJM_settings }} | {{ TFJM|json_script:'TFJM_settings' }} | ||||||
|  |  | ||||||
| <script> | <script> | ||||||
|     const CSRF_TOKEN = "{{ csrf_token }}" |     const CSRF_TOKEN = "{{ csrf_token }}" | ||||||
|   | |||||||
| @@ -18,7 +18,7 @@ | |||||||
|             </li> |             </li> | ||||||
|             <li class="nav-item active"> |             <li class="nav-item active"> | ||||||
|                 {% if TFJM.SINGLE_TOURNAMENT %} |                 {% if TFJM.SINGLE_TOURNAMENT %} | ||||||
|                     <a href="{% url 'participation:tournament_detail' pk=TFJM.SINGLE_TOURNAMENT.pk %}" class="nav-link"> |                     <a href="{% url 'participation:tournament_detail' pk=TFJM_TOURNAMENT.pk %}" class="nav-link"> | ||||||
|                         <i class="fas fa-calendar-day"></i> {% trans "Tournament" %} |                         <i class="fas fa-calendar-day"></i> {% trans "Tournament" %} | ||||||
|                     </a> |                     </a> | ||||||
|                 {% else %} |                 {% else %} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user