-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'source-update' into source-general-infos
- Loading branch information
Showing
45 changed files
with
819 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule admin
updated
8 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
======================== | ||
Module de configuration | ||
======================== | ||
|
||
Le chemin d’accès au module de configuration est toujours constitué de l’URL du visualiseur suivis de ``/config``. | ||
|
||
-------------------------- | ||
Panneau de configuration | ||
-------------------------- | ||
|
||
.. figure:: ../_static/images/django/config.png | ||
:alt: Panneau de configuration | ||
:align: center | ||
|
||
Panneau de configuration | ||
|
||
-------------------------- | ||
Options de configuration | ||
-------------------------- | ||
|
||
L'entrée ``Config`` dans le panneau de configuration offre le moyen à l'utilisateur de spécifier finement certains paramètres, activer des outils supplémentaires, personnaliser le thème de l'application, etc. | ||
|
||
Constance | ||
---------- | ||
|
||
.. figure:: ../_static/images/django/config2.png | ||
:alt: Page de configuration | ||
:align: center | ||
|
||
Page de configuration | ||
|
||
Frontend options | ||
~~~~~~~~~~~~~~~~ | ||
|
||
Options permettant d'activier ou paramétrer des fonctionnalités supplémentaires dans l'application. | ||
|
||
- ``VIEW_ROOT_PATH`` : Chemin de la vue racine de l'application | ||
- Exemple : view | ||
- ``OPENID_SSO_LOGIN_BUTTON_TEXT`` : Texte du bouton de connexion pour OpenID | ||
- Exemple : Connexion CD49 | ||
- ``OPENID_DEFAULT_LOGIN_BUTTON_TEXT`` : Texte par défaut du bouton de connexion | ||
- Exemple : Autre utilisateur | ||
- ``MEASURE_CONTROL`` : Option pour activer lecontrôle MapBox des mesures sur la carte | ||
- ``MEASURE_DRAW_STYLES`` : Personnalisation du style pour le contrôle des mesures sur la carte | ||
- Exemple : | ||
- ``SEARCH_IN_LOCATIONS`` : Option pour activer la recherche par lieux sur la carte | ||
- ``SEARCH_IN_LOCATIONS_PROVIDER`` : Fournisseur de recherche par lieu (Nominatim uniquement) | ||
- ``NOMINATIM_URL`` : URL de recherche du service Nominatim (https://nominatim.openstreetmap.org/search.php) | ||
- ``NOMINATIM_USE_VIEWBOX`` : Option 'viewbox' de Nominatim pour filtrer les résultats | ||
- ``NOMINATIM_VIEWBOX_MIN_LAT`` : Latitude minimum pour l'option 'viewbox' de Nominatim | ||
- ``NOMINATIM_VIEWBOX_MIN_LONG`` : Longitude minimum pour l'option 'viewbox' de Nominatim | ||
- ``NOMINATIM_VIEWBOX_MAX_LAT`` : Latitude maximum pour l'option 'viewbox' de Nominatim | ||
- ``NOMINATIM_VIEWBOX_MAX_LONG`` : Longitude maximum pour l'option 'viewbox' de Nominatim | ||
|
||
General options | ||
~~~~~~~~~~~~~~~~ | ||
|
||
- ``INSTANCE_TITLE`` : Titre de l'instance | ||
- Exemple : Observatoire du territoire du Maine-et-Loire | ||
|
||
Map BBOX options | ||
~~~~~~~~~~~~~~~~ | ||
|
||
Ces paramètres permettent de limiter l'étendue de la recherche si les options ``NOMINATIM_VIEWBOX_`` ne sont pas renseignées. | ||
|
||
- ``MAP_BBOX_LNG_MIN`` : Longitude minimum de la BBox de la carte | ||
- ``MAP_BBOX_LNG_MAX`` : Longitude maximum de la BBox de la carte | ||
- ``MAP_BBOX_LAT_MIN`` : Latitude minimum de la BBox de la carte | ||
- ``MAP_BBOX_LAT_MAX`` : Latitude maximum de la BBox de la carte | ||
|
||
Map Zoom options | ||
~~~~~~~~~~~~~~~~ | ||
|
||
Ces paramètres permettent de spécifier un niveau minimal et maximal entre lesquels il sera possible de naviguer sur la carte. | ||
|
||
- ``MAP_MAX_ZOOM`` : Zoom maximum de la carte | ||
- ``MAP_MIN_ZOOM`` : Zoom minimum de la carte | ||
|
||
Map default options | ||
~~~~~~~~~~~~~~~~~~~ | ||
|
||
Ces paramètres permettent de définir l'emprise spatiale de l'application. | ||
Cette emprise pourra être redéfinie au niveau de chaque vue dans l'outil d'administration (se référer à la section :ref:`Créer une vue <creer-une-vue>`). | ||
|
||
- ``MAP_DEFAULT_ZOOM`` : Zoom par défaut de la carte | ||
- ``MAP_DEFAULT_LNG`` : Longitude par défaut du centre de la carte | ||
- ``MAP_DEFAULT_LAT`` : Latitude par défaut du centre de la carte | ||
|
||
Mapbox options | ||
~~~~~~~~~~~~~~ | ||
|
||
La clé Mapbox est obligatoire pour l'affichage des cartes de définition de l'empriqse spatiale dans l'outil d'administration. | ||
|
||
- ``MAPBOX_ACCESS_TOKEN`` : Clé Mapbox | ||
|
||
Theme Options | ||
~~~~~~~~~~~~~~ | ||
|
||
Options de personnalisation du thème de l'application. | ||
|
||
- ``INSTANCE_LOGO`` : Logo affiché en haut à gauche du menu des vues | ||
- ``INSTANCE_LOGO_FRONTEND_URL`` : URL du logo de l'application | ||
- ``INSTANCE_FAVICON`` : Favicon | ||
- ``INSTANCE_SPLASHSCREEN`` : Logo de démarrage (non fonctionnel) | ||
- ``INSTANCE_CREDITS`` : Crédits de l'instance, s'affiche sur la carte en mode impression | ||
- ``INSTANCE_INFO_CONTENT`` : Contenu de l'onglet 'Informations' de l'application | ||
|
||
|
||
|
Submodule front
updated
19 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2024.01.1 | ||
2024.02.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Generated by Django 4.2.9 on 2024-02-01 15:18 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("accounts", "0004_permanentaccesstoken"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name="user", | ||
options={"verbose_name": "User", "verbose_name_plural": "Users"}, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from constance import config | ||
from django.contrib.admin import AdminSite | ||
from django.utils.translation import gettext as _ | ||
|
||
|
||
class ConfigSite(AdminSite): | ||
site_header = _(f"{config.INSTANCE_TITLE}: {_('Configuration')}") | ||
site_title = _(f"{config.INSTANCE_TITLE}: {_('Configuration')}") | ||
index_title = _(f"Welcome to {config.INSTANCE_TITLE} configuration interface.") | ||
|
||
|
||
config_site = ConfigSite(name="config_site") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.