Is there a naming convention for Django apps

后端 未结 4 2160
孤独总比滥情好
孤独总比滥情好 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-13 00:01

    some good examples

    • graphene_django
    • users
    • orders
    • oauth2_provider
    • rest_framework
    • polls

    in simple terms, app_name should have short, all-lowercase names. Underscores can be used in the module name if it improves readability. also should have a short name and it can be a plural and singular name

提交回复
热议问题