Live data from Hacker News

Django 1.11 beta 1 released

djangoproject.com

61–70 of 87 posts

Re: Django 1.11 beta 1 released

#61
post #36

Class based indexes - looks great, is there support for CREATE INDEX CONCURRENTLY for postgres ?

I also wondered that but seems from https://code.djangoproject.com/ticket/21039 they'd prefer devs to do that manually in migrations marked as non-atomic

Makes sense, would be weird to start testing while indexes are building

Re: Django 1.11 beta 1 released

#62
post #18

This is a bit off topic, but can anyone suggest a decent Django tutorial? I've just recently learned python, and would like to build a few projects using Django. I completed Django's official tutorial[1], but when it came time for me to actually start building something, I found I didn't really understand what was going on. I should mention I'm inexperienced in both web application development and python in general.…

I haven't followed this one myself, but the django girls tutorial is supposed to be excellent. https://tutorial.djangogirls.org/en/

Yes, django girls is very good. They use it for workshops, see where people run into trouble, and then adapt. So it's very well battle tested.

Re: Django 1.11 beta 1 released

#63
post #3

Release notes with the new features in 1.11: https://docs.djangoproject.com/en/dev/releases/1.11/ Highlights: - better support for creating indexes on your Models with class-based indexes - widget rendering in forms now uses the templating system instead of python - Explicit subquery expression support via Subquery and Exists expressions.

> The cached template loader is now enabled if DEBUG is False

This should give a decent performance improvement for many websites.

Re: Django 1.11 beta 1 released

#64
post #26

> The Django 1.11.x series is the last to support Python 2. The next major release, Django 2.0, will only support Python 3.5+. Really the most important part of this release, out of all. This is the time where enterprise companies using Python and Django really need to switch to Python 3. In fact, anyone using Ubuntu 16.04 should already find themselves going "ugh" because they needed Python 2. More reasons to push f…

I like the model of https://railslts.com/ It's reasonable that volunteer developers working on an open-source project sunset old versions, and old versions of language runtimes or dependencies. Nobody wants to keep maintaining 5-year-old versions with 12-year-old dependencies when they could use their time to improve the latest version instead. Django is one of the most "responsible" projects in this regard - having…

Yes, very likely 1.11 will end up getting unofficial community support after 2020.

Django 1.6 (the last version to support Python 2.6) is still getting unofficial support: https://github.com/beanbaginc/django

Re: Django 1.11 beta 1 released

#65
post #32

I've been building a project with Django Rest Framework (DRF), it's my first time using anything Django-related. Does anyone know whether new versions of Django tend to drop right into DRF, or whether DRF has to do some work to be compatible with a new version? I ask because I like the sound of the fulltext search mentioned in another comment, because it would mean I don't have to install a search engine to support t…

I would try it in development, run your tests, etc.

But wait to deploy anything to production until DRF officially supports it (which should be pretty much at launch, DRF should be working with the beta now to ensure compatibility)

Re: Django 1.11 beta 1 released

#66
post #56
post #18

This is a bit off topic, but can anyone suggest a decent Django tutorial? I've just recently learned python, and would like to build a few projects using Django. I completed Django's official tutorial[1], but when it came time for me to actually start building something, I found I didn't really understand what was going on. I should mention I'm inexperienced in both web application development and python in general.…

I highly recommend the Django Unchained[1] course from Tuts+, that's my favorite introduction to Django, where you learn the fundamentals by building a HN clone. Also, a shameless plug, I have built a website[2] where I collect the best webdev learning resources, you can find other good Django tutorials there. Funny enough, the website itself is built based on the stuff I've learned from the Django Unchained course =…

You should enable HTTPS on this asap. Let's Encrypt[0] makes it super easy, and Digital Ocean has some good tutorials as well.

Besides that it looks really good!

[0] https://letsencrypt.org/

Re: Django 1.11 beta 1 released

#67
post #56

Earlier quoted context omitted.

I highly recommend the Django Unchained[1] course from Tuts+, that's my favorite introduction to Django, where you learn the fundamentals by building a HN clone. Also, a shameless plug, I have built a website[2] where I collect the best webdev learning resources, you can find other good Django tutorials there. Funny enough, the website itself is built based on the stuff I've learned from the Django Unchained course =…

You should enable HTTPS on this asap. Let's Encrypt[0] makes it super easy, and Digital Ocean has some good tutorials as well. Besides that it looks really good! [0] https://letsencrypt.org/

Thank you very much for the advice, I will definitely do that!

Re: Django 1.11 beta 1 released

#68
post #18

This is a bit off topic, but can anyone suggest a decent Django tutorial? I've just recently learned python, and would like to build a few projects using Django. I completed Django's official tutorial[1], but when it came time for me to actually start building something, I found I didn't really understand what was going on. I should mention I'm inexperienced in both web application development and python in general.…

I haven't followed this one myself, but the django girls tutorial is supposed to be excellent. https://tutorial.djangogirls.org/en/

This is a very helpful one, I used it a lot and referred to it a lot when building out my first few Django apps.

Re: Django 1.11 beta 1 released

#69
post #18

This is a bit off topic, but can anyone suggest a decent Django tutorial? I've just recently learned python, and would like to build a few projects using Django. I completed Django's official tutorial[1], but when it came time for me to actually start building something, I found I didn't really understand what was going on. I should mention I'm inexperienced in both web application development and python in general.…

newboston on youtube. I needed a crash course on django -- after the first couple of videos I knew what I needed. But, I got hooked by his fast pace and finished the set over 2 days. A+

As far as youtube tutorials go, I thought sentdex had a pretty good one: https://www.youtube.com/playlist?list=PLQVvvaa0QuDeA05ZouE4O... . It helped me get my first django project up and running.

Re: Django 1.11 beta 1 released

#70

Earlier quoted context omitted.

I also wondered that but seems from https://code.djangoproject.com/ticket/21039 they'd prefer devs to do that manually in migrations marked as non-atomic

Makes sense, would be weird to start testing while indexes are building

CONCURRENTLY doesn't build indexes asynchronously - it just builds them in a way that doesn't lock the table.
Post reply on HN