Opened 17 years ago

Closed 16 years ago

Last modified 16 years ago

#6128 closed (duplicate)

Unable to register commands from apps inside the project

Reported by: Chris Petrilli Owned by: nobody
Component: Uncategorized Version: dev
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In trying to get the django_evolution application to work, I initially tried installing the application inside my project directory, and then adding it to my INSTALLED_APPS. This would allow the syncdb command to see the necessary actions, however the commands that it registered (./manage.py evolve) never would work. After talking to the mailing list, I moved it to somewhere else on my PYTHON_PATH and adjusted INSTALLED_APPS and now it works. It was believed that this was a known issue, however I can't find anything that seems to apply. The closest was #5212.

This is on SVN at changeset [6894] on Mac OS X 10.5 w/Python 2.5.1.

Change History (6)

comment:1 by Russell Keith-Magee, 17 years ago

Triage Stage: UnreviewedAccepted

Just to clarify the details here: The situation is a project called 'myproject', with an application called 'myapp' that registers a user-space management command.

If your PYTHONPATH is set up such that INSTALLED_APPS contains 'myproject.myapp', the user command won't be discovered, even though other management behaviour, such as post-syncdb registered signals, will occur.

If PYTHONPATH is set up such that INSTALLED_APPS contains 'myapp', the command will be registered successfully.

comment:2 by jdetaeye, 17 years ago

I think ticket #6128 describes the same issue.

in reply to:  2 comment:3 by jdetaeye, 17 years ago

Correction... I meant #5825.

comment:4 by Collin Grady <cgrady@…>, 17 years ago

If it helps at all with tracking it down, this isn't a global issue - I have no trouble using custom management commands from an app that's inside a project, and in INSTALLED_APPS as 'myproject.myapp'

comment:5 by anonymous, 16 years ago

Resolution: duplicate
Status: newclosed

duplicate of #5825

in reply to:  4 comment:6 by dusty@…, 16 years ago

Replying to Collin Grady <cgrady@the-magi.us>:

If it helps at all with tracking it down, this isn't a global issue - I have no trouble using custom management commands from an app that's inside a project, and in INSTALLED_APPS as 'myproject.myapp'

Indeed, we encountered this bug on our project but it doesn't occur for all developers. The only difference between the two setups that we found so far is that python2.5.1 works and python2.5.2 does not.

Note: See TracTickets for help on using tickets.
Back to Top