Is there a tool for Django project structure/information flow visualization?

只谈情不闲聊 提交于 2019-12-03 03:08:47

It is impossible to create tools which you are looking for that would work good in practice. Django does not force you to any structure. Tool can only be made to work with strict structure. Also django allows you to take full advantage of the dynamic nature of python. It is too difficult to create tools which could understand dynamics of your project.

Few examples:

  • views can be methods generated by factory-methods.

  • a view can render different templates in different situations.

  • Urls can be generated dynamically

  • Custom url reslover can be used

  • Variable can be used in {% extend %} tag. Lets say one base template for authenticated user and other for anonymous.

Tools which gives you a lot of visual information about project is common to java world but not to python.

One great advantage of python is that it allows to write readable code fast. Usually well written and well structured code explains it self quite well without additional tools.

To ease the process of template/view finding you should have good structure of your code and maybe invent some project-level naming conventions for views/templates/urls.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!