Selaa lähdekoodia

Merge pull request #1678 from Avaiga/feature/#1641-add-toml-suggestion-in-config-of-default-template

Feature/#1641 - Add TOML suggestion in config.py of default template
Đỗ Trường Giang 9 kuukautta sitten
vanhempi
säilyke
43c241c5bc

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