Live data from Hacker News

Django 6.0 beta 1 released

djangoproject.com

21–30 of 60 posts

Re: Django 6.0 beta 1 released

#21
post #18

I would really like if there was a way to integrate with non-Python ecosystems. I know this is way outside the scope of Django, but I still have to mention it. The moment you want to rely on a JavaScript library or generate some CSS you pretty much have to pull in Node and NPM because there just so much value in those ecosystems. And then you have to put up with a second ecosystem with its own build system and someho…

Like for what?

Re: Django 6.0 beta 1 released

#22

Incompatible with the default Ubuntu 22.04 LTS python version, just FYI (uses 3.10 whereas the minimum is now 3.12).

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

Re: Django 6.0 beta 1 released

#23

Earlier quoted context omitted.

My understanding is that if you just need to return a response to the client as quickly as possible, but are ok with then processing your task directly after that, then it's still usable today. But if you want to schedule a task further in the future, then a new backend will be needed for that.

I think the bigger use case is being able to (backoff) retry failing API calls to 3rd party services. AFAIUI the new tasks package doesnt offer this in v1 which is a deal breaker for my project, at least.

For me I think it works well as is because my use case is sending several different emails after POST'ing to a view, which, there is no need to make the user wait for in my case, as they don't care about the status of the mail delivery.

But I realize there are many other usecases too that will need proper workers.

Re: Django 6.0 beta 1 released

#24
post #4

Looks like Django 6 is getting an offical task system. There’s no real world brokers or workers supported (at least built in), but still centralising around a standard interface might make things nicer than the celery tentacle monsters Django apps eventually tend to mutate into.

Right, I'd never touch celery, but RQ is simple and has never let me down.

Re: Django 6.0 beta 1 released

#25

Incompatible with the default Ubuntu 22.04 LTS python version, just FYI (uses 3.10 whereas the minimum is now 3.12).

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.

Re: Django 6.0 beta 1 released

#26
post #15
post #7

Love me Django and excited about this release. It’s been quite a journey through the years. I started working with it a little before 1.0 and continue to do so. Nowadays as an independent consultant which gives me the ability to really help keep Django systems up to date. Yes, there’s some rough edges. Like updating can be tricky sometimes, and performance relating to DB queries is a skill in itself, but in general i…

What're some DB query performance issues you've run across in the past and how did you resolve them?

People generally don’t take the time to learn the framework and miss out on the tooling it provides. select_related for example. If I had a dollar for every project I’ve been hired to work on that didn’t use it, well, I actually do.

Also, people in general don’t seem to be able to do more than very basic SQL, so creating views is seen as a little known performance “trick”.

In general, people who don’t read the manual.

Re: Django 6.0 beta 1 released

#27

Incompatible with the default Ubuntu 22.04 LTS python version, just FYI (uses 3.10 whereas the minimum is now 3.12).

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

Wow I had no idea about that, thanks!

Re: Django 6.0 beta 1 released

#29

Incompatible with the default Ubuntu 22.04 LTS python version, just FYI (uses 3.10 whereas the minimum is now 3.12).

Ops here, using System Python is always asking for trouble, just put Django into a container and call it a day.

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...

Re: Django 6.0 beta 1 released

#30
A task framework could be very useful, setting up celery task can get complicated very fast, especially once you have multiple servers with rolling deploys or recurring task (celery-beat). Rails has active-job and is always something I felt was missing from Django.
Post reply on HN