#24857: Add __main__ entry point as an alias for django-admin -------------------------------------+------------------------------------- Reporter: tricoder42 | Owner: | tricoder42 Type: New feature | Status: assigned Component: Core (Management | Version: master commands) | Severity: Normal | Resolution: Keywords: | Triage Stage: Accepted Has patch: 0 | Needs documentation: 1 Needs tests: 1 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by ryanhiebert): I've worked on this a bit more, added a couple updates to the PR referenced in the OP. I spent a little time figuring out how to test it, but don't have it all worked out yet. Best I can tell so far is that the tests probably need to live in {{{tests/admin_scripts/tests.py}}}, but I don't have it worked out what and how is the best way to test. My first thought is to subclass or copy the {{{DjangoAdmin*}}} tests to use the python entry point. I could subclass {{{AdminScriptTestCase}}}, but that just seems like a lot of test coupling. One problem I'm not quite sure how to deal with is that the current tests don't seem to require that Django be installed properly. I might be able to just make sure the current working directory is the root of the repository... -- Ticket URL: <https://code.djangoproject.com/ticket/24857#comment:5> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/068.f6b00465e944b77a20d2f6adb76ec9d9%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.