查找项目应用程序
django-find-apps的Python项目详细描述
安装
$ [sudo] pip install django-find-apps
命令
command | ^{ |
---|---|
^{ | print list of project apps |
函数
function | ^{ |
---|---|
^{ | return a list of apps |
示例
示例1:
fromdjango_find_appsimportfind_appsINSTALLED_APPS=find_apps(".")+[...]
示例2:
设置:
fromdjango_find_appsimportfind_appsPROJECT_APPS=open("apps.txt").read().splitlines()INSTALLED_APPS=PROJECT_APPS+["django_find_apps"]
$ touch "apps.txt" $ python manage.py find_apps > "apps.txt"