News for hackers. Stuff that matters.
Re:Django 1.11 beta 1 released by pmulv on Monday February 20, 2017 @11:21PM (#13693255)
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.

1: https://docs.djangoproject.com/en/1.10/intro/tutorial01/

Re:Django 1.11 beta 1 released by dtran on Monday February 20, 2017 @11:46PM (#13693342)
I highly recommend Two Scoops of Django and have recommended to every engineer at my company. The one caveat would be that the newest edition is for Django 1.8, so it'd be good to check against the docs periodically if anything looks off. Off the top of my head, the main thing I'd keep an eye out for would be changes to Class-Based Views like permissions mixins, although if I remember correctly, most of those changes were just moving things in django-braces to Django core.
Re:Django 1.11 beta 1 released by aaronbasssett on Tuesday February 21, 2017 @05:52AM (#13694696)
Two Scoops is a great book, and my personal go to reference for best practices. But I don't know if I would recommend it for someone looking to learn Django for the first time as it is more of a reference.

For someone completely new to Django I'd likely recommend Tango with Django or Hello Web App

Re:Django 1.11 beta 1 released by legostormtroopr on Tuesday February 21, 2017 @01:21AM (#13693712)
Danny and Audrey are busy updating two-scoops for version 1.11, so if you can hold off on buying, do so, simply because 1.11 will be the next LTS release.
Re:Django 1.11 beta 1 released by ylem on Tuesday February 21, 2017 @10:24AM (#13696134)
I'll chime in with also highly recommending the Two Scoops book! It was nice to see their design philosophy. I worked with several older releases of Django and found their thoughts on CBV helpful in deciding when/when not to use them. Also, it was nice to see their thoughts on layout. I stepped away from Django development for awhile and a lot has changed from 1.6 to 1.10! I just wish that they had decided to also offer an electronic version! Any idea if they are planning an electronic release this time?
Re:Django 1.11 beta 1 released by jgalt212 on Tuesday February 21, 2017 @10:10AM (#13696031)
I think this book is generally good, but I am not a fan of their espousal of class based views. HTTP is not class based, it's functionally based.
Re:Django 1.11 beta 1 released by notsrg on Wednesday February 22, 2017 @10:10AM (#13706024)
If your Django project is a million lines of code you're going to appreciate mixins and CBV's. Most built in views are moving to CBV's as well (see login/logout/password reset/etc in 1.11).
Re:Django 1.11 beta 1 released by rainloft on Tuesday February 21, 2017 @12:07AM (#13693439)
Re:Django 1.11 beta 1 released by jsmeaton on Tuesday February 21, 2017 @12:57AM (#13693624)
I haven't followed this one myself, but the django girls tutorial is supposed to be excellent.

https://tutorial.djangogirls.org/en/

Re:Django 1.11 beta 1 released by collinmanderson on Tuesday February 21, 2017 @08:42AM (#13695304)
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 by fiftyacorn on Tuesday February 21, 2017 @03:59AM (#13694290)
I prefer djangogirls to two scoops - twoscoops is the way to go once you have learn the basics. But I felt it lacked a walkthru example
Re:Django 1.11 beta 1 released by collyw on Tuesday February 21, 2017 @05:19AM (#13694589)
Two Scoops is a great book, but it is based around best practices, so assumes you know Django already to some extent.
Re:Django 1.11 beta 1 released by fiftyacorn on Tuesday February 21, 2017 @06:16AM (#13694768)
yes I agree - its where you should aspire to be
Re:Django 1.11 beta 1 released by grepthisab on Tuesday February 21, 2017 @09:51AM (#13695870)
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 by durfdurf on Tuesday February 21, 2017 @03:59AM (#13694287)
can confirm this tutorial is good, covers setting up virtual env for python / easy to follow
Re:Django 1.11 beta 1 released by yeukhon on Monday February 20, 2017 @11:52PM (#13693364)
I recommend TreeHouse's Django series. I tried other methods (books, blog posts, none really helped me). Not free either, but it really helped. There's a free trial so you can learn Django quickly in 7 days (I did) but I am keeping my membership for now to learn other stuff... (although kinda pricey for me). The series is not up-to-date either, but the basics remain unchanged. You may find one or two syntax / API differences, but that's it.

I also grew up with Django... since 0.9 but didn't really focus on web development using Django, so for me I had to pick it up again from scratch and quick. Two Scoops is a reference book at best IMO. Use it if you are really comfortable with all the basics of Django and you have done at least 6-12 months of Django regularly.

Re:Django 1.11 beta 1 released by rayalez on Tuesday February 21, 2017 @07:02AM (#13694893)
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 =)

[1] https://code.tutsplus.com/courses/django-unchained

[2] http://webacademy.io/django-tutorials/

Re:Django 1.11 beta 1 released by pythonaut_16 on Tuesday February 21, 2017 @08:59AM (#13695432)
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 by rayalez on Tuesday February 21, 2017 @09:36AM (#13695747)
Thank you very much for the advice, I will definitely do that!
Re:Django 1.11 beta 1 released by felipegalvao on Tuesday February 21, 2017 @10:42AM (#13696282)
Obey The Testing Goat is good. It follows TDD and is pretty complete

http://www.obeythetestinggoat.com/pages/book.html#toc

Re:Django 1.11 beta 1 released by nawtacawp on Monday February 20, 2017 @11:46PM (#13693345)
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+
Re:Django 1.11 beta 1 released by vgbm on Tuesday February 21, 2017 @09:51AM (#13695873)
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 by godzillabrennus on Tuesday February 21, 2017 @04:17AM (#13694364)
I've been learning Django and found that most tutorials are out of date and very few go into detail. Two scoops even breezed over some aspects of the new project environment decisions they recommend (and share on Github). I've turned to asking for help from experts and on occasion hiring a mentor on sites like code mentor to answer questions for me.

Beats the cost of a coding academy and has let me go at my own pace.

Re:Django 1.11 beta 1 released by phodo on Monday February 20, 2017 @11:39PM (#13693315)
A bit of googling and you will find many excellent resources - filter on 'last year' in the search results. One recommended book is 'two scoops of Django'. You should get familiar with the request response cycle (Language agnostic) and that will make things a lot clearer as you build up your skills.
Re:Django 1.11 beta 1 released by pen2l on Monday February 20, 2017 @11:44PM (#13693334)
Two scoops is an okay book I suppose, but it's definitely not what the grandparent post is asking for -- it goes over things too quickly.

I actually recommend youtube video tutorials! Like, some will show you how to make a basic photo hosting site... a blog site, etc. Follow those once or twice, and take it from there. Best of luck!

Re:Django 1.11 beta 1 released by bedros on Tuesday February 21, 2017 @12:01AM (#13693415)