> On 10 Apr 2018, at 17:43, Florian Apolloner <[email protected]> wrote: > > On Tuesday, April 10, 2018 at 1:28:33 PM UTC+2, Tim Allen wrote: > Since `django-admin startproject my_project` is created on the fly from > templates, couldn't we dynamically create the `manage.py` executable based on > some system introspection and an agreed upon priority > > Wouldn't that result in something along the lines of "works on my system" and > breaks elsewhere? after all manage.py is committed into git more often than > not.
... which directs us to the correct solution: setting PYTHONPATH and DJANGO_SETTINGS_MODULE correctly and using django-admin instead of manage.py. pip / setuptools rewrites the shebang line appropriately when it installs the django-admin script. (I'm not sure how this happens exactly.) My point is — there's no perfect solution. At best we can aim for a less imperfect solution than the status quo. -- Aymeric. -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/C36A8494-1094-4A03-A402-618BB999F927%40polytechnique.org. For more options, visit https://groups.google.com/d/optout.
