Config file with a .py file

前端 未结 4 443
南笙
南笙 2021-01-22 08:39

I have been told that doing this would be a not-very-good practice:

configfile.py

SOUNDENABLED = 1
FILEPATH = \'D:\\\\TEMP\\\\hello.txt\'
         


        
4条回答
  •  花落未央
    2021-01-22 09:12

    This is a perfectly acceptable practice. Some examples of well-known projects using this method are Django and gunicorn.

提交回复
热议问题