Most active commenters

    ←back to thread

    Django 6.0 beta 1 released

    (www.djangoproject.com)
    106 points webology | 13 comments | | HN request time: 0.549s | source | bottom
    1. ranger_danger ◴[] No.45674557[source]
    Incompatible with the default Ubuntu 22.04 LTS python version, just FYI (uses 3.10 whereas the minimum is now 3.12).
    replies(6): >>45675117 #>>45675181 #>>45675496 #>>45675563 #>>45675815 #>>45676251 #
    2. wolf550e ◴[] No.45675117[source]
    Is this handled by uv or do you need to use deadsnakes ppa?
    replies(1): >>45675201 #
    3. collinmanderson ◴[] No.45675181[source]
    Yes, that's pretty typical. I think there's a general assumption if you're using older python you'll probably stick to Django LTS 5.2 from this April which still supports Python 3.10.

    They only drop python versions right after LTS (which is part of why they increase the major version at that point). https://docs.djangoproject.com/en/dev/faq/install/#what-pyth...

    Also Django LTS 5.2 is supported a year longer than Ubuntu 22.04. (April 2028 vs April 2027)

    4. stavros ◴[] No.45675201[source]
    If anything, you'd need the opposite, as deadsnakes is old versions (OP needs a new version).
    5. davidkwast ◴[] No.45675496[source]
    You can always use pyenv to install any Python on any mainstream Linux. I only use pyenv Python to develop on any laptop or any server. My dev laptop is still Ubuntu 22.04 and I have any Python from 2.7 to 3.14 .

    https://github.com/pyenv/pyenv

    Simple Python version management

    replies(1): >>45675646 #
    6. gdulli ◴[] No.45675563[source]
    Building Python from source is trivial, I wouldn't let the distro dictate what I can and can't use for such an important part of the stack.
    7. majorchord ◴[] No.45675646[source]
    Wow I had no idea about that, thanks!
    replies(1): >>45677685 #
    8. stackskipton ◴[] No.45675815[source]
    Ops here, using System Python is always asking for trouble, just put Django into a container and call it a day.
    replies(1): >>45675947 #
    9. ranger_danger ◴[] No.45675947[source]
    What kind of trouble? That's all I've ever used for the last 15 years of my professional Django work and never had any issues...
    replies(2): >>45676426 #>>45679072 #
    10. loloquwowndueo ◴[] No.45676251[source]
    If you need Python 3.12 you should update to Ubuntu 24.04 if you want to stick with distro packages.
    11. stackskipton ◴[] No.45676426{3}[source]
    Anything involving Distro updating. There is no reason not to use containers except Docker Build scary!
    12. int_19h ◴[] No.45677685{3}[source]
    Better yet, uv:

    https://docs.astral.sh/uv/guides/install-python/

    13. Balinares ◴[] No.45679072{3}[source]
    Incompatibility with Python version in current LTS Ubuntu sounds like an issue to me.

    FWIW I used to be fine with just dealing with system Python, like you, but recent tools like uv make it so easy and convenient to isolate interpreters and dependencies per project that I'm just not going back.