I believe manage.py no longer does that since 1.4 (new project layout). As
a consequence the code could be simplified.
--
Ticket URL: <https://code.djangoproject.com/ticket/21630>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by ramiro):
Thought the same when trying to work on #15084 and reviewing that code.
But, shouldn't that code remain as is to stay compatible with existing
project that use old the layout? Or this isn't a supported scenario?
--
Ticket URL: <https://code.djangoproject.com/ticket/21630#comment:1>
Comment (by mjtamlyn):
I think we've had the new layout long enough - other things which tried to
do clever stuff around this have been removed from what I remember. +1 to
removing this.
--
Ticket URL: <https://code.djangoproject.com/ticket/21630#comment:2>
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/21630#comment:3>
* has_patch: 0 => 1
Comment:
Is this too much simplification?
--
Ticket URL: <https://code.djangoproject.com/ticket/21630#comment:4>
* status: new => assigned
* owner: nobody => aaugustin
--
Ticket URL: <https://code.djangoproject.com/ticket/21630#comment:5>
* status: assigned => new
* owner: aaugustin =>
* stage: Accepted => Ready for checkin
Comment:
Yes, your approach seems correct to me. I'd rather remove this stuff and
see if someone has an edge case that breaks than leave it without knowing
why. The patch will require a small update to apply after 486532. I'll let
you push it!
--
Ticket URL: <https://code.djangoproject.com/ticket/21630#comment:6>
Comment (by aaugustin):
Replying to [comment:1 ramiro]:
> But, shouldn't that code remain as is to stay compatible with existing
project that use old the layout? Or this isn't a supported scenario?
Because of the app-loading refactor, I don't think it'll be possible to
use the old layout with Django 1.7.
--
Ticket URL: <https://code.djangoproject.com/ticket/21630#comment:7>
* owner: => Claude Paroz <claude@…>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"fe53bc524b9c7cbc814868acde94226d0ba2bc84"]:
{{{
#!CommitTicketReference repository=""
revision="fe53bc524b9c7cbc814868acde94226d0ba2bc84"
Fixed #21630 -- Simplified management command discovery
Thanks Aymeric Augustin for the report end the review.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/21630#comment:8>
Comment (by claudep):
I'm not convinced this has to be backported to 1.7. If you think it
should, just speak!
--
Ticket URL: <https://code.djangoproject.com/ticket/21630#comment:9>
Comment (by aaugustin):
Yes, I think it should be backported, because if it breaks something, that
will be seen as collateral damage of app loading.
--
Ticket URL: <https://code.djangoproject.com/ticket/21630#comment:10>
Comment (by Claude Paroz <claude@…>):
In [changeset:"91ef348bd6ac5d3051d428806b143c419af91aa8"]:
{{{
#!CommitTicketReference repository=""
revision="91ef348bd6ac5d3051d428806b143c419af91aa8"
[1.7.x] Fixed #21630 -- Simplified management command discovery
Thanks Aymeric Augustin for the report end the review.
Backport of fe53bc524 from master.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/21630#comment:11>
Comment (by aaugustin):
Thank you!
--
Ticket URL: <https://code.djangoproject.com/ticket/21630#comment:12>