-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Fixed #14087 -- find management commands in namespace packages #178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Fixed typo in ValuesQuerySet._as_sql docstring
Thanks Aymeric Augustin for detecting this regression.
… be displayed as selected even if the lookup's first element is not a string.
…ates consistent. Thanks and at cloverfastfood dot com for the report.
Fixed #19070: urlize template filter raises exception in some cases
The failure was caused by using None as a choice for a CharField. To avoid Oracle's "" <-> NULL handling the field type was changed to IntegerField.
Thanks Daniele Procida for the patch.
This certainly works for me. Anything we can do to get it committed? |
Well it works ! |
Yes it works! Why isn't accepted yet? |
Please merge. For now to each deployement I have to patch manually in order to see namespace commands. |
As I noted on the previous PR (#866) I'd like to see:
|
Closing this for now in light of @apollo13's comments. |
So it is not fixed ! |
Why is it not fixed? I testes this PR, it works well and solves the problem, more than one year, what would be the solution? |
What else do you mean by support for PEP#420 ? |
@Natim PEP420 gives python 3 implicit namespaces, so this PR should at least have a test to test that those new namespaces work too. Even though the current patch solves your issue, as a core dev our goal is to improve Django as a whole, which for me in that case means to include support for all (common) namespace solutions out there. @rochacbruno A statement or rather tested support for PEP 420. As a sidenote: this PR currently includes 12 commits, most of them unrelated to this PR, so that's not really nice to review either… Also this PR has no two pretty much identical codepaths in django/core/management/init.py, which should at least be factored out into a helper function. |
So all we need is to isolate the code related to the namespace issue, create the test for PEP 420 and send another PR? |
Kind of, at least then the PR would be in a reviewable shape. |
@apollo13 just one commit, 82f5a71. I guess it is because master has changed after this PR was made. Django try very hard NOT to import any module when finding management commands, but Django do import app package before finding templates, static files, fixture. So other parts do not have to be patched. |
Update attendees_and_learners.rst
Fix a 404 link on documentation index page
improve joh's and nfg's patches, find management commands in namespace packages only. packages imported by pep-302 importers should be in another patch.
https://code.djangoproject.com/ticket/14087