فهرست منبع

feat: add toml suggestion in config of default template

trgiangdo 9 ماه پیش
والد
کامیت
eb79c06d5b
1فایلهای تغییر یافته به همراه13 افزوده شده و 7 حذف شده
  1. 13 7
      taipy/templates/default/{{cookiecutter.__root_folder_name}}/configuration/config.py

+ 13 - 7
taipy/templates/default/{{cookiecutter.__root_folder_name}}/configuration/config.py

@@ -19,10 +19,16 @@ from algorithms import *
 
 from taipy import Config
 
-# #############################################################################
-# PLACEHOLDER: Put your application's configurations here                     #
-#                                                                             #
-# Example:                                                                    #
-# scenario_config = Config.configure_scenario("placeholder_scenario", [])     #
-# Comment, remove or replace the previous lines with your own use case        #
-# #############################################################################
+# ###########################################################################
+# PLACEHOLDER: Put your application's configurations here                   #
+#                                                                           #
+# Example:                                                                  #
+# scenario_config = Config.configure_scenario("placeholder_scenario", [])   #
+#                                                                           #
+# Or create a config.toml file and load it like this:                       #
+# def configure():                                                          #
+#    Config.load("config/config.toml")                                      #
+#    return Config.scenarios["scenario_configuration"]                      #
+#                                                                           #
+# Comment, remove or replace the previous lines with your own use case      #
+# ###########################################################################