This site is a beta test.
Question: viewing biostar github code with graphviz
0
Entering edit mode
3.2 years ago
bicepjai • 0

I am trying to use biostar code make a website. Biostar code seems amazing. But having hard time trying to wrap my mind around the models. pygraphviz seems like the way to go. But finding it hard to generate those model images. Could anyone help with this model images generation with graphviz for django ?

currently trying to follow

Any help appreciated. I got the manage.py to see the graph_models command-line argument but i end up getting

(biostar)root (master)*[biostar-central]$ ./manage.py graph_models -a -g -o my_project.png
Traceback (most recent call last):
  File "./manage.py", line 9, in <module>
    execute_from_command_line(sys.argv)
  File "/root/websites/django-tutorial/virtual-envs/biostar/lib/python2.7/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
    utility.execute()
  File "/root/websites/django-tutorial/virtual-envs/biostar/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/root/websites/django-tutorial/virtual-envs/biostar/lib/python2.7/site-packages/django/core/management/__init__.py", line 272, in fetch_command
    klass = load_command_class(app_name, subcommand)
  File "/root/websites/django-tutorial/virtual-envs/biostar/lib/python2.7/site-packages/django/core/management/__init__.py", line 75, in load_command_class
    module = import_module('%s.management.commands.%s' % (app_name, name))
  File "/root/websites/django-tutorial/virtual-envs/biostar/lib/python2.7/site-packages/django/utils/importlib.py", line 40, in import_module
    __import__(name)
  File "/root/websites/django-tutorial/virtual-envs/biostar/lib/python2.7/site-packages/django_extensions/management/commands/graph_models.py", line 9, in <module>
    from django_extensions.management.modelviz import generate_graph_data, generate_dot
  File "/root/websites/django-tutorial/virtual-envs/biostar/lib/python2.7/site-packages/django_extensions/management/modelviz.py", line 16, in <module>
    from django.apps import apps
ImportError: No module named apps

Login before adding your answer.

Powered by the version 1.5.2