Ask HN: Learning Django post-"Learn Python the Hard Way by Zed Shaw"
I've pretty much completed Zed Shaw's course, "Learning Python the Hard Way." Although at the beginning I was skeptical, I've really begun to grasp the semantics of the language and I feel his way to teaching really works for me.
Now that I have the basics down, I would like to really learn Django. Are there any Django apps with source code available that I can learn from by replicating the code?
I know I can stroll over to GitHub but as a novice, I'm concerned about the code being clean and I'm pretty sure I haven't developed an eye yet for what's clean and what's not.
Any recommendations?
7 comments
[ 0.27 ms ] story [ 27.5 ms ] threadIf you're not in a hurry though, and are new to web development, I'd really suggest learning Flask. It's a great introduction to web development in Python.
https://docs.djangoproject.com/en/1.3/intro/tutorial01/
Any good intro book is going to have something similar. "Python Web Development with Django" includes a number of example projects. You can either follow along in the book and type in the examples (the "Hard" way) or download the projects and see/run them at once in their finished form (the "Common" way).
http://withdjango.com/
http://withdjango.com/readers/source/
I cannot stress enough how useful the official documentation is. Not only is it chock full of useful code examples, but the fact that it is a living document means that it is always up-to-date (unlike Django books or blog posts).
I can not really think of any useful Django applications on Github or Bitbucket that are simple enough for someone who is learning the framework to replicate, but if pushed I would suggest:
- the source code for the framework itself
- applications made by core developers (like django-registration or django-taggit)
- applications with a significant following in the community (like south or django-sentry)
(You can also upload and expand zip files of other projs/code you may find, as well as copy public projects into new projects of your own.)
Hope this helps...
Then I read the online Django Book and followed along the examples found in those chapters. http://www.djangobook.com/en/2.0/
After that, I felt I had a good grasp of Django but wanted to get a more complete experience of building a simple but powerful web app so I purchased this book - http://www.amazon.com/Django-Website-Development-Ayman-Houri.... I really learned a lot from this book since not only did it provide me with a better understanding of the Django framework, it also helped me learn how to build all the nice features like tagging, search and integrate other technologies such as JQuery.
Now, I am trying to develop my own app using the book as a guide and I am having a lot of fun with it!