- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for files (0.12 sec)
-
docs/en/docs/advanced/settings.md
## Settings in another module You could put those settings in another module file as you saw in [Bigger Applications - Multiple Files](../tutorial/bigger-applications.md){.internal-link target=_blank}. For example, you could have a file `config.py` with: ```Python {!../../../docs_src/settings/app01/config.py!} ``` And then use it in a file `main.py`: ```Python hl_lines="3 11-13"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu May 02 22:37:31 GMT 2024 - 15.7K bytes - Viewed (0) -
docs/zh/docs/advanced/settings.md
然后,`admin_email` 设置将为 `"******@****.***"`。 `app_name` 将为 `"ChimichangApp"`。 而 `items_per_user` 将保持其默认值为 `50`。 ## 在另一个模块中设置 您可以将这些设置放在另一个模块文件中,就像您在[Bigger Applications - Multiple Files](../tutorial/bigger-applications.md){.internal-link target=_blank}中所见的那样。 例如,您可以创建一个名为 `config.py` 的文件,其中包含以下内容: ```Python {!../../../docs_src/settings/app01/config.py!} ``` 然后在一个名为 `main.py` 的文件中使用它:
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 13.9K bytes - Viewed (0)