6 points · by andy93 · 14y ago · 10 comments
My main question though is what is the best way to learn Django? I do not have ANY experience with a framework like this, my only experience is Python, HTML, CSS, some Javascript and a little bit of jQuery. Many people say just to use the documentary online, and I feel this would be good if I had some kind of development background. I am really looking for a book to purchase that is focused towards teaching the basics inside and out. From there I can start to hack stuff together and go off on my own, that is just the way I learn. So if you guys would suggest a book, what would it be? Otherwise what other options should I consider?
Following which, I recommend trying to build from scratch simple webapps that uses 3rd party api's like Twitter or Flickr.
The goto book is http://www.amazon.com/Definitive-Guide-Django-Development-Ri...
For some reason, a lot of the django books are outdated.
As for the versions, I would say go with Python2.7/Django1.4
I wrote a short checklist that might help you in your progress!
http://pragmaticstartup.wordpress.com/2012/08/25/what-every-...
So give a blog system a try! Play with getting "SEO friendly URL's" set up, get TinyMCE/Markdown implemented and toy with stopping XSS attacks, set up tagging, etc. If you know a language already I reckon you could easily write it in a weekend.
I'd also pickup virtualenv + pip skills asap.
1) virtualenv --no-site-packages <project_name>
2) source project_name/bin/activate
3) pip install <package_name>
4) pip freeze > requirements.txt
5) pip install -r requirements.txt
Thats pretty much all you need to know to get a LONG way with those two.
In general pyhton and django are very easy, dont be intimidated by the number of new words showing up. Best thing to do is start a practice project and get coding away.
ps.: use distribute ( * )
* - Sponsored by the Ministry Of Packaging, http://s3.pixane.com/python_comrades.png