Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problems with django-extensions

Tags:

django

I install django-extensions like that:

git clone git://github.com/django-extensions/django-extensions.git
cd django-extensions
python setup.py install

Then I go to my project folder and use:

./manage.py graph_models -a -g -o my_project_visualized.png

Whats returns:

Unknown command: 'graph_models'
Type 'manage.py help' for usage.

I try "help" - all of that commands I know, but how can I fix the problem with graph_models?

like image 401
Lev Avatar asked Sep 19 '25 19:09

Lev


1 Answers

Since you haven't mention it. I assume you're missing the INSTALLED_APPS step:

settings.py:

INSTALLED_APPS = (
    ...
    'django_extensions',
)

Is's not mentioned on the GitHub site, but it is mentioned on the documentation.

And of course:

pip install django_extensions

And add it to the requirements if you have any

like image 176
César Avatar answered Sep 22 '25 11:09

César