As a datapoint, I've seen roughly 1 person per week in #django IRC confused
about specific startup exceptions due to them using python 2 rather than
python 3 on Django >= 2.0. Unsure how many of these are due to the shebang.
That said, it looks like there are no good solutions other than maybe
ensuring our docs always show the form *python3 manage.py <command>* rather
than *./manage.py <command>*.
On Wednesday, 11 April 2018 12:02:31 UTC+10, Bobby Mozumder wrote:
> In any case you’re going to see a lot of Django 2.0 developers on Mac OS
> hit this problem when they install to default Python or use standard Python
> install convention where Python 3.5 is installed as “python3".
> On Apr 10, 2018, at 3:46 PM, Aymeric Augustin <
> On 10 Apr 2018, at 17:43, Florian Apolloner <f.apo...@gmail.com
> 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
> 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.
> 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
> To post to this group, send email to django-d...@googlegroups.com
> Visit this group at https://groups.google.com/group/django-developers.
> To view this discussion on the web visit
> For more options, visit https://groups.google.com/d/optout.
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 post to this group, send email to email@example.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit
For more options, visit https://groups.google.com/d/optout.