mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 04:22:14 +01:00 
			
		
		
		
	Compare commits
	
		
			5 Commits
		
	
	
		
			e1b4e1bb6b
			...
			9cea493f31
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					
						
						
							
						
						9cea493f31
	
				 | 
					
					
						||
| 
						 | 
					
						
						
							
						
						a5aff5ff21
	
				 | 
					
					
						||
| 
						 | 
					
						
						
							
						
						196dbc8275
	
				 | 
					
					
						||
| 
						 | 
					
						
						
							
						
						0847e5a308
	
				 | 
					
					
						||
| 
						 | 
					
						
						
							
						
						e5aa3ef059
	
				 | 
					
					
						
@@ -103,7 +103,7 @@ le 2 mars à 22h :
 | 
				
			|||||||
.. code:: python
 | 
					.. code:: python
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    REGISTRATION_DATES = dict(
 | 
					    REGISTRATION_DATES = dict(
 | 
				
			||||||
        open=datetime.fromisoformat("2025-01-08T12:00:00+0100"),
 | 
					        open=datetime.fromisoformat("2025-01-15T12:00:00+0100"),
 | 
				
			||||||
        close=datetime.fromisoformat("2025-03-02T22:00:00+0100"),
 | 
					        close=datetime.fromisoformat("2025-03-02T22:00:00+0100"),
 | 
				
			||||||
    )
 | 
					    )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -14,7 +14,7 @@ class Command(BaseCommand):
 | 
				
			|||||||
    def handle(self, *args, **kwargs):
 | 
					    def handle(self, *args, **kwargs):
 | 
				
			||||||
        base_dir = Path(__file__).parent.parent.parent.parent
 | 
					        base_dir = Path(__file__).parent.parent.parent.parent
 | 
				
			||||||
        base_dir /= "output"
 | 
					        base_dir /= "output"
 | 
				
			||||||
        base_dir / "photo_authorizations"
 | 
					        base_dir /= "photo_authorizations"
 | 
				
			||||||
        if not base_dir.is_dir():
 | 
					        if not base_dir.is_dir():
 | 
				
			||||||
            base_dir.mkdir()
 | 
					            base_dir.mkdir()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -30,6 +30,6 @@ class Command(BaseCommand):
 | 
				
			|||||||
                            file_output.write(file_input.read())
 | 
					                            file_output.write(file_input.read())
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                if participant.photo_authorization_final:
 | 
					                if participant.photo_authorization_final:
 | 
				
			||||||
                    with participant.photo_authorization.file as file_input:
 | 
					                    with participant.photo_authorization_final.file as file_input:
 | 
				
			||||||
                        with open(team_dir / f"{participant} (finale).pdf", 'wb') as file_output:
 | 
					                        with open(team_dir / f"{participant} (finale).pdf", 'wb') as file_output:
 | 
				
			||||||
                            file_output.write(file_input.read())
 | 
					                            file_output.write(file_input.read())
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -13,7 +13,7 @@ def tfjm_context(request):
 | 
				
			|||||||
            'HAS_OBSERVER': settings.HAS_OBSERVER,
 | 
					            'HAS_OBSERVER': settings.HAS_OBSERVER,
 | 
				
			||||||
            'HAS_FINAL': settings.HAS_FINAL,
 | 
					            'HAS_FINAL': settings.HAS_FINAL,
 | 
				
			||||||
            'HOME_PAGE_LINK': settings.HOME_PAGE_LINK,
 | 
					            'HOME_PAGE_LINK': settings.HOME_PAGE_LINK,
 | 
				
			||||||
            'LOGO_PATH': "static/tfjm/img/" + settings.LOGO_FILE,
 | 
					            'LOGO_PATH': "tfjm/img/" + settings.LOGO_FILE,
 | 
				
			||||||
            'NB_ROUNDS': settings.NB_ROUNDS,
 | 
					            'NB_ROUNDS': settings.NB_ROUNDS,
 | 
				
			||||||
            'ML_MANAGEMENT': settings.ML_MANAGEMENT,
 | 
					            'ML_MANAGEMENT': settings.ML_MANAGEMENT,
 | 
				
			||||||
            'PAYMENT_MANAGEMENT': settings.PAYMENT_MANAGEMENT,
 | 
					            'PAYMENT_MANAGEMENT': settings.PAYMENT_MANAGEMENT,
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -196,7 +196,14 @@ STATICFILES_DIRS = [
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
STATIC_ROOT = os.path.join(BASE_DIR, "static")
 | 
					STATIC_ROOT = os.path.join(BASE_DIR, "static")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
STATICFILES_STORAGE = 'pipeline.storage.PipelineStorage'
 | 
					STORAGES = {
 | 
				
			||||||
 | 
					    "default": {
 | 
				
			||||||
 | 
					        "BACKEND": "django.core.files.storage.FileSystemStorage",
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    'staticfiles': {
 | 
				
			||||||
 | 
					        'BACKEND': 'pipeline.storage.PipelineStorage',
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
STATICFILES_FINDERS = (
 | 
					STATICFILES_FINDERS = (
 | 
				
			||||||
    'django.contrib.staticfiles.finders.FileSystemFinder',
 | 
					    'django.contrib.staticfiles.finders.FileSystemFinder',
 | 
				
			||||||
@@ -367,7 +374,7 @@ if TFJM_APP == "TFJM":
 | 
				
			|||||||
    RULES_LINK = "https://tfjm.org/reglement"
 | 
					    RULES_LINK = "https://tfjm.org/reglement"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    REGISTRATION_DATES = dict(
 | 
					    REGISTRATION_DATES = dict(
 | 
				
			||||||
        open=datetime.fromisoformat("2025-01-08T12:00:00+0100"),
 | 
					        open=datetime.fromisoformat("2025-01-15T12:00:00+0100"),
 | 
				
			||||||
        close=datetime.fromisoformat("2025-03-02T22:00:00+0100"),
 | 
					        close=datetime.fromisoformat("2025-03-02T22:00:00+0100"),
 | 
				
			||||||
    )
 | 
					    )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user