# Superset specific config ROW_LIMIT = 5000 # Flask App Builder configuration # Your App secret key will be used for securely signing the session cookie # and encrypting sensitive information on the database # Make sure you are changing this key for your deployment with a strong key. # Alternatively you can set it with `SUPERSET_SECRET_KEY` environment variable. # You MUST set this for production environments or the server will refuse # to start and you will see an error in the logs accordingly. SECRET_KEY = 'YOUR_OWN_RANDOM_GENERATED_SECRET_KEY' # The SQLAlchemy connection string to your database backend # This connection defines the path to the database that stores your # superset metadata (slices, connections, tables, dashboards, ...). # Note that the connection information to connect to the datasources # you want to explore are managed directly in the web UI # The check_same_thread=false property ensures the sqlite client does not attempt # to enforce single-threaded access, which may be problematic in some edge cases SQLALCHEMY_DATABASE_URI = 'sqlite:////path/to/superset.db?check_same_thread=false' # Flask-WTF flag for CSRF WTF_CSRF_ENABLED = True # Add endpoints that need to be exempt from CSRF protection WTF_CSRF_EXEMPT_LIST = [] # A CSRF token that expires in 1 year WTF_CSRF_TIME_LIMIT = 60 * 60 * 24 * 365 # Set this API key to enable Mapbox visualizations MAPBOX_API_KEY = '' # Personnalisation de l'apparence de l'application APP_ICON = "/static/assets/images_superset/logo_synaltic.png" #Le logo de l'application LOGO_TOOLTIP = "Ceci est l'infobulle du logo" # Texte affiché lorsque l'utilisateur survole le logo LOGO_TARGET_PATH = "/" #Le chemin de redirection lorsque l'utilisateur clique sur le logo LOGO_RIGHT_TEXT = "SYNALTIC BI" # Texte affiché à droite du logo APP_NAME = "Synaltic Superset" # Nom de l'application qui apparaît dans l'interface FAVICONS = [{"href": "/static/assets/images_superset/logo_synaltic.png"}] #Le favicon de l'application # Personnalisation du thème de l'interface THEME_OVERRIDES = { # Rayon des bordures des éléments "borderRadius": 10, # Personnalisation de la palette de couleurs "colors": { "text": { "label": "#ff8000", # Couleur du texte des labels (orange) "help": "#e67300", # Couleur du texte d'aide (orange foncé) }, "primary": { "base": "#ff8000", # Couleur principale (orange) "dark1": "#e67300", # Couleur principale foncée (orange foncé) "light1": "#ffbf80", # Couleur principale claire (orange clair) }, "secondary": { "base": "#008000", # Couleur secondaire (vert) }, "grayscale": { "base": "#879399", # Couleur grise de base (gris moyen) "light1": "#a9b3b8", # Gris clair }, "error": { "base": "#ff0000", # Couleur d'erreur (rouge) }, }, # Personnalisation de la typographie "typography": { "families": { "sansSerif": "Courier, Monaco, monospace", # Police monospaced personnalisée "serif": "Georgia, Times, serif", # Police serif }, "weights": { "normal": 400, # Poids normal de la police "bold": 600, # Poids gras de la police }, }, } # Paramétrage de la langue de l'application # Définir la langue par défaut de l'application BABEL_DEFAULT_LOCALE = "fr" # Définir les langues disponibles pour l'application LANGUAGES = { "en": {"flag": "us", "name": "English"}, # Ajouter l'anglais comme langue disponible "fr": {"flag": "fr", "name": "Français"}, # Ajouter le français comme langue disponible }