How do I create sub-applications in Django?

后端 未结 5 887
后悔当初
后悔当初 2020-12-08 02:17

I\'m a Django newbie, but fairly experienced at programming. I have a set of related applications that I\'d like to group into a sub-application but can not figure out how t

5条回答
  •  既然无缘
    2020-12-08 02:36

    You can still do this :

    cd app
    django-admin startapp subapp1
    

    This will work (create the application basic structure), however app and subapp1 will still be considered as two unrelated applications in the sense that you have to add both of them to INSTALLED_APPS in your settings.

    Does this answer your question ? Otherwise you should tell more about what you are trying to do.

提交回复
热议问题