django-detect-cyclic

Django application to detect cyclic imports
Download

django-detect-cyclic Ranking & Summary

Advertisement

  • Rating:
  • License:
  • LGPL v3
  • Price:
  • FREE
  • Publisher Name:
  • Pablo Martin
  • Publisher web site:
  • http://grupoikusnet com

django-detect-cyclic Tags


django-detect-cyclic Description

django-detect-cyclic is a Django app to detect cyclic imports. With this application you can analyze the dependence of your applications.InstallationIn your settings.py:INSTALLED_APPS = ( 'django_detect_cyclic',)Caption- The nodes are the applications, or the modules of the applications (if you use the option show-modules)- One edge means that the node source import the node destination- When there is a cycle the edge has a background color (the same color in all the cycle), and it label contains "Cycle X"- The label of the edges contains the weight in parentheses- If you use the options show-modules, each node has a background color. If two nodes are to the same application, they have the same background color.Possibles ErrorsIt is possible that the next links are interested if you can some problem:- http://code.google.com/p/python-graph/issues/detail?id=15- http://stackoverflow.com/questions/2133767/using-python-graphviz-importerror-no-module-named-gvIt is possible that you have to remove the pyc files:find -iname "*.pyc" -exec rm "{}" \;Usage (Examples)python manage.py detect_cyclicpython manage.py detect_cyclic --include-apps="app1,app6,app7,app11" --file-name="my_graph.svg" --exclude-packages="migrations,templatetags" --verbosity=2python manage.py detect_cyclic --include-apps="app1,app6" --show-modules --file-name="my_graph.svg" --exclude-packages="migrations" --verbosity=2python manage.py detect_cyclic --include-apps="app1,app6" --only-cyclic --file-name="my_graph.svg" --exclude-packages="migrations" --verbosity=2To see other examples click in examples.Product's homepage


django-detect-cyclic Related Software