8 ms·
Getting Started with Django
- pydanny 14y agoI'm very glad that you created this video series. It's going to be incredibly helpful for many developers. Keep up the good work!
- Chico75 14y agoThis seems to be the perfect video to get setup before reading your book, which is very light on the "proper setup". I imagine that a book might not be the best format for that, or simply that this is not the content your main audience expect to start with.
- pydanny 14y agoIndeed, it's a good corollary. :-)
- datashaman 14y agoFrom Wikipedia: A corollary is a statement that follows readily from a previous statement. Huh?
- huxley 14y agoThat's just one of the formal definitions: http://www.merriam-webster.com/dictionary/corollary http://www.merriam-webster.com/dictionary/corollary check out the second definitions part a and b: 2.a : something that naturally follows : result 2.b : something that incidentally or naturally accompanies or parallels
- asparagui 14y agoa minor nit: fix the spelling in the header "Getting to Heorku"
- kennethlove 14y agodone
- zalew 14y agochef, vagrant, ubuntu, apt-get, pip, virtualenv, heroku, ssh.. oh there it is, sth about learning django. I'm saying it not to diss your work, but don't you think setting up a linux env on a vm and signing up to heroku shouldn't be the point of a django tutorial? point explained in another discussion about zed's approach to writing 'learn x the hard way' https://news.ycombinator.com/item?id=4961593 https://news.ycombinator.com/item?id=4961593
- porter 14y agoI actually think setting up those tools in the tutorial video is great. It's nice to see how a real django dev builds a production app. This stuff is rarely covered in other more simplified tutorials.
- chrisjones 14y ago"3. Make it work for Windows, OSX, and Linux if you can." This is the reason the VM was introduced. So that no matter what OS the user is running, they can follow along without having to go search for ways to get all this setup and running. The setup is very minimal thanks to Chef and Vagrant. Kenneth is trying to teach best practices and tools to use. He also explained in the beginning of the video that you should be comfortable with a terminal and text editor that you like. This shouldn't be your first time looking at a terminal. Heroku is a simple way to get your project out to the public and it's free. Nothing inspired me more as a developer than having others look at my work. I think it adds a little bit of excitement to be able to show your work to others almost immediately. Even if it's something small, it's still something to "show off" and feel good about.
- hayksaakian 14y agoI feel like that reasoning should be outlined in the tutorial. As a newbie, it seems like a pain to get django running if I have to set up a VM just to do it, and the author provides little explanation. Coming from rails, its weird to me that he seems to emphasize their 'gem install' equivalent over their bundler equivalent. Otherwise, a great tutorial.
- peterhajas 14y agoWhy do I need to go through the Django tutorial before starting "Getting Started with Django"? I thought this would be my first stop, not something after the official Polls app.
- gojomo 14y agoWhy would you want this to duplicate material well-covered by the official-Django-site tutorial? Even if you like this format better, the official-site tutorial is pretty good, and helpfully sets a common baseline for all Django learners (and all followup teaching). Having a 'canon' helps future steps, even if they diverge.
- dedsm 14y agoDRY?
- tsumnia 14y agoWhile others are complaining about all the up front set up; this is actually something I like. Base tutorials always seem to be missing that 'something' that takes what you've learned and turns it into a real world application. Even if its not step one, I would prefer more tutorials to have a full fledged 'Getting Set Up' section; even if it becomes arbitrary. It makes sure everyone can get on the same page no matter where they come from.
- lelandbatey 14y agoI agree, and in this case it's setting up a very consistent environment that will be almost exactly the same as the one he's going to be using. Additionally, these are the actual procedures you could use to set up a very real and serious tool. I'm loving this!
- yannis 14y agoThis is an excellent idea and the instructions almost worked as is even on an old windows vista machine (with the exception I had to download PuTTY, but the messages were very intuitive. What is missing is perhaps a comments page, if nothing else to thank the author.
- majorlazer 14y agoExactly my thoughts. When I just started programming, there were so many tutorials I started on rails, django, and various other frameworks that I couldn't get to work the same way as in the tutorial. This was very important to me when I just started programming because if my results didn't match exactly that of the tutorials, I would not want to continue further since I am not sure if I am doing everything right. One of the better tutorials I have found that takes extra care in making sure you are doing everything right, is the famous rails tutorial found here: http://ruby.railstutorial.org/ruby-on-rails-tutorial-book http://ruby.railstutorial.org/ruby-on-rails-tutorial-book
- DrHankPym 14y agoI'm looking for a good Django tutorial that includes examples of developing with BDD and TDD. The way I learned Rails included RSpec and Cucumber, and that made a huge difference.
- iuguy 14y agoWow, this looks really good. A decent django tutorial that covers all the ops side is somewhat lacking I feel, and this certainly looks pretty full. How do you plan to fund the other lessons?
- kennethlove 14y agoThe Kickstarter is funding all 10 originally planned episodes plus ~5 more covering FAQ-type situations.
- drewtemp 14y agoThe Getting Started with Django series is off to a great start. Kenneth's soothing voice and background music makes it easy on the ears to listen to. The video quality is also great. The initial subjects are, in my opinion, essential to almost every web developer working in a multi-environment setting. Not to mention a great introduction for those just getting into Django. I'm looking forward to more of Getting Started with Django from Kenneth to see what else is in store for those new to Django and to those that utilize Django often.
- davs 14y agoKenneth, sorry if this has been asked, but how often will you be releasing videos ? Monthly ? Also thank you for making series ;)
- kennethlove 14y agoThe plan is to do 1-2 per month, ideally about 1 every 2 weeks. I have to do them in my (and my editor's) off time, so some months that may slip.
- porter 14y agoAny chance you can add a subscribe by email form so we can be notified when you release new videos?
- kennethlove 14y agoI thought I had one. I'll add it this evening.
- kennethlove 14y agoI've added a link to subscribe to the mailing list to the top of the site.
- hrayr 14y agoI like where this series is headed, I will certainly be following it. A few suggestions on how to improve the consumption of these videos. 1) Break down the video into smaller bite sized chunks to provide for natural breaks. Unlike movies where it's more a passive viewing experience, educational videos, especially ones where you're expected to follow along, require a lot more mental engagement. This makes it difficult to sit through a 50 minute video in one sitting. 3) Use a basic video editor (e.g ScreenFlow) to zoom into the sections you're working on. It's difficult to follow what you're doing when viewing the entire screen, text is tiny and difficult to read. Also forcing me to go into full screen mode to view the text, doesn't help when I want to follow along. Overall, I love it. Keep up the good work.
- kennethlove 14y agoWhen the official download comes out in a day or two, it'll have chapter markers in it for QuickTime, so you'll be able to jump around as needed.
- dansul 14y ago>Break down the video into smaller bite sized chunks to provide for natural breaks. I agree with this. Find a natural stopping point if you can or just make the videos smaller regardless. ~15 min is OK IMHO.
- dysoco 14y agoWow just what I needed! As a Desktop/Systems developer I find it hard to integrate all the HTML - CSS - JS - Python and then deploy a Web Application, I've been taking a look at the Django Book but it kinds of assumes you know Web Development. This looks like just what I need, I'll finish my Poll application and check your tutorials.
- mehulkar 14y agoThis is great. Just one thing though: body {width: 80%; margin:0 auto; min-width:1080px;}
- alexakarpov 14y agowhy is that HN crowd is so much into Django? Every day I see something Django-related on the top page. I feel like I'm left out... is Django like the world's number one web framework (for hackers)?
- FilterJoe 14y agoDjango is the leading Python framework (by any usage measure) for web development. Python is a popular language. Ergo . . . As someone who has been learning Django/Python for 4 months, I very much appreciate both the getting started with Django site and the book 2 Scoops of Django that just came out. Would have saved me weeks of time if I had access to these 4 months ago. It's coincidence that they came out within a few days of each other (and a few days after Django 1.5 release candidate came out). There's even greater interest in Ruby on Rails, the leading web development framework for Ruby.
- ianstallings 14y agoBecause of the love for Python in general. I used Django to fairly good success last year and I'm glad to see it's still going strong. It's far from he Drupal where everything is a CMS option. It's more of a developer-centric CMS system with some sugar on top. Check it out if you are interested in learning. It's a fairly simple platform. The headaches, in my experience, comes from the documentation. It lags behind and the community moves quickly.
- alexakarpov 14y agoThanks; sounds like I really should learn at least some.
- clicks 14y agoDjango is a pretty decent web framework for Python (Python being a language that's loved very much by a large majority of folks here). Pinterest, Disqus, Instagram, PBS site, Washington Post site, etc. etc. are all Django projects. It's definitely worth learning -- the community is helpful and in large numbers, the framework is quite 'complete' -- there are lots of plugins available, it's fairly secure... and it's a pleasure to work with. :)
- deleted 14y ago[deleted]
- TruthElixirX 14y agoIs there a way to save HN stories, aside from commenting on them? I don't want to leave a pointless comment just so I can find it later (I didn't want to leave this one.).
- kennethlove 14y agoYour browser should have a bookmark function...
- TruthElixirX 14y agoI was not at my own personal computer.
- walkon 14y agoUpvote it and it will show in your "Saved Stories" page (link on your profile page).
- ntsh 14y agoI don't think it works for me. Maybe I don't have enough Karma or it is a bug. http://news.ycombinator.com/item?id=4462292 http://news.ycombinator.com/item?id=4462292
- dustincoates 14y agoPocket's my go-to tool for that. http://getpocket.com/ http://getpocket.com/
- drewtemp 14y agoTry using kippt. They have a Chrome addon that allows you to save HN stories into your links.
- rhokstar 14y ago>>Learning an editor, the terminal for you computer, and a new language is not something to do while learning a framework. I made this mistake when I was learning Ruby. Ha! Good times!
- kphill 14y agoThis is awesome, thanks for posting this. I'm having trouble getting the VM going and I have a pretty vanilla set up so I'm worried the requirements might need some more detail such as version numbers. I'm running Ubuntu 12.04 LTS on an i3-2350M and all BIOS settings for virtualization are enabled. I installed Vagrant 1.0.6 and VirtualBox 4.2.6. Vagrant gives the following error: [default] The guest additions on this VM do not match the install version of VirtualBox! This may cause things such as forwarded ports, shared folders, and more to not work properly. If any of those things fail on this machine, please update the guest additions and repackage the box. And running directly from the VirtualBox GUI gives an error: Failed to open a session for the virtual machine gswd_1358906798. VT-x features locked or unavailable in MSR. (VERR_VMX_MSR_LOCKED_OR_DISABLED). My hardware is 6 months old, would you expect people with 4 year old hardware to run this without trouble? Any ideas would be appreciated.
- kennethlove 14y agoI'm running VirtualBox 4.2.4 but I would think, since it creates the VM when you `vagrant up`, that it wouldn't matter what version of VB you were running. So that's odd. The Vagrant version I have is 1.0.5, just for completeness sake. I just downloaded the zip file again to check, and there's nothing in there (at least that I can find) that mentions a version of VirtualBox. You're also the first person to mention a problem like this (one other person had a problem after running the VM with getting packages from Google). You could try downgrading, or, since you're on a sane OS, just running everything sans VM. You'll need to install Git and PostgreSQL yourself, though. Let me know if anything changes, please. I'll ask around and let you know if I find anything out. Thanks, and sorry for your problems.
- kphill 14y agoLooks like my problems were completely my fault. On my ThinkPad the virtualization setting is in the BIOS under Security and it was not set correctly. There were some other settings under CPU that I initially thought were the right ones. I'm sorry to waste your time.
- 14y ago
- mladenkovacevic 14y agoThe video was fairly long and I wish there was a way for specific sections in the video to be indexed so one can just to sections that are of interest. Then again the text transcript is below so I guess that's an easy way to look up what is needed. I am particularly interested in all the different ways developers set up their settings files. I use a solution which works but I always feel could be a bit more elegant as it requires passing a DJANGO_SETTINGS_MODULE variable when activating a virtualenv (different settings file is activated depending on whether it's a development, staging or production environment)... I think I copied this method from Zachary Voase's blog. Maybe the method you use is better for Heroku, I'm not sure.
- DustinCalim 14y agoStep 1. Unchain him.