Is there a naming convention for Django apps

后端 未结 4 2161
孤独总比滥情好
孤独总比滥情好 2020-12-12 22:57

Is there a preferred naming convention for creating a Django app consisting of more than one word? For instance, which of the following is preferred?

  1. my_
4条回答
  •  轮回少年
    2020-12-12 23:48

    App directory names must be a valid Python package name. This means that option 2 is completely inadmissible as a package name, although it can still be used for other purposes, such as documentation. In the end it comes down to personal style. If you prefer option 3 then use it.

提交回复
热议问题