File tree Expand file tree Collapse file tree 4 files changed +18
-1
lines changed
Expand file tree Collapse file tree 4 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -136,6 +136,7 @@ celerybeat.pid
136136.env.compose
137137.env.develop
138138.env.prod
139+ .env.preprod
139140.venv
140141env /
141142venv /
Original file line number Diff line number Diff line change 1010https://docs.djangoproject.com/en/5.0/ref/settings/
1111"""
1212
13- from datetime import timedelta
13+ from datetime import timedelta , datetime
1414import os
1515from pathlib import Path
1616
1717from core .utils .parsing import strtobool
1818
19+ DEPLOYMENT_DATETIME = datetime .now ()
20+
1921# Build paths inside the project like this: BASE_DIR / 'subdir'.
2022BASE_DIR = Path (__file__ ).resolve ().parent .parent
2123
Original file line number Diff line number Diff line change 11from django .urls import path
2+
3+ from core .views .utils import deploy_infos
24from . import get_tile_view
35from . import get_import_infos
46from . import get_custom_geometry
1012urls = [
1113 path (f"{ URL_PREFIX } { view .URL } " , view .endpoint , name = view .URL )
1214 for view in [
15+ deploy_infos ,
1316 get_tile_view ,
1417 get_import_infos ,
1518 get_custom_geometry ,
Original file line number Diff line number Diff line change 1+ from django .http import JsonResponse
2+
3+
4+ from aigle .settings import DEPLOYMENT_DATETIME
5+
6+
7+ def endpoint ():
8+ return JsonResponse ({"datetime" : str (DEPLOYMENT_DATETIME )})
9+
10+
11+ URL = "deployment-infos/"
You can’t perform that action at this time.
0 commit comments