--
Ticket URL: <https://code.djangoproject.com/ticket/24950>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by aaugustin):
Would it make sense to do this only on Python 2?
--
Ticket URL: <https://code.djangoproject.com/ticket/24950#comment:1>
Comment (by MarkusH):
I don't see how you would distinguish between projects running on Python 2
only and those supporting Python 2 and Python 3 in parallel. As far as I
know, adding this import does not break anything on Python 3 (any
release).
--
Ticket URL: <https://code.djangoproject.com/ticket/24950#comment:2>
Comment (by timgraham):
I think that for end-user projects (which I assume is the common case for
using startapp) the need to support Python 2 and 3 is rather uncommon. I'd
rather promote Python 3 than add cruft that only has benefit on Python 2.
Feel free to enhance your arguments if you feel otherwise.
--
Ticket URL: <https://code.djangoproject.com/ticket/24950#comment:3>
* Attachment "24950.diff" added.
Comment (by timgraham):
There's a tentative implementation that needs I test I guess, although I
have mixed feelings about whether to accept or reject this ticket as I'd
like to think most new projects are using Python 3. :-) Of course, there
may be existing projects starting new apps on Python 2.
--
Ticket URL: <https://code.djangoproject.com/ticket/24950#comment:4>
Comment (by MarkusH):
I'd like to think that, too, Tim. But I don't see that happening for the
next year or two.
--
Ticket URL: <https://code.djangoproject.com/ticket/24950#comment:5>
* stage: Unreviewed => Accepted
Comment:
I just think our time could be better spent, but if you have interest,
might as well just do it rather than spend time debating.
--
Ticket URL: <https://code.djangoproject.com/ticket/24950#comment:6>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/24950#comment:7>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"5d428908218e3692d1bc7e4ada6235029ae9e45c" 5d42890]:
{{{
#!CommitTicketReference repository=""
revision="5d428908218e3692d1bc7e4ada6235029ae9e45c"
Fixed #24950 -- Added unicode_literals to models.py in app template
Thanks Tim Graham for the patch
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24950#comment:8>