adding own commands to manage.py not working correctly
|Reported by:||dafire||Owned by:||nobody|
|Component:||Core (Management commands)||Version:||master|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I tried to add my own commands as described in http://www.djangoproject.com/documentation/django-admin/ but it did not find my commands.
I did some research and found a problem.
lets assume I have
INSTALLED_APPS = ( 'proj.app' )
and call manage.py from the /var/www/proj folder it looks for the "management" class in /var/www/proj/proj/app/management
sys.path = ['..']+sys.path to
"django\core\management\__init__.py" as a local fix and it worked after that.
Change History (6)
comment:4 follow-up: 5 Changed 8 years ago by
|Component:||Uncategorized → django-admin.py|
|Status:||reopened → closed|