What's the official way of storing settings for python programs?

后端 未结 13 1217
傲寒
傲寒 2020-12-12 23:58

Django uses real Python files for settings, Trac uses a .ini file, and some other pieces of software uses XML files to hold this information.

Are one of these approa

13条回答
  •  醉梦人生
    2020-12-13 00:19

    Depends on the predominant intended audience.

    If it is programmers who change the file anyway, just use python files like settings.py

    If it is end users then, think about ini files.

提交回复
热议问题