瀏覽代碼

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      #
+# ###########################################################################