from Hacker News

Learn web development: Django Web Framework

by farabove on 2/9/17, 9:35 PM with 51 comments

  • by nikisweeting on 2/10/17, 2:37 AM

    If you're curious about how to set up a modern JS frontend on top of Django, I wrote up a tutorial recently. It might be helpful if you're debating between trying a Single Page App approach or some other design: https://medium.com/@theSquashSH/reconciling-djangos-mvc-temp...
  • by molly0 on 2/9/17, 11:30 PM

    Great to see Mozilla supporting Django. But isn't the official Django tutorial cover all of this, Why not just link to it?
  • by gt565k on 2/10/17, 1:49 AM

    I had used Django back in version 1.3 and was just thinking today of how I need to brush up, as it has been a few years.

    The timing of this article couldn't have been better. Now I've got my weekend cut out :)

  • by nicolaslem on 2/10/17, 8:07 AM

    Django is such an important building block of the web, it completely deserves this tutorial on MDN.

    As someone who came to Django quite late, I cannot stress enough how coding in Django is refreshing. Yes it's not about microservices nor it bring all the trendy technologies that we all hear about.

    And that's just fine, you get things done with it and at the end of the day this is what matters.

  • by cponeill on 2/10/17, 6:51 AM

    This is pretty fantastic. I was just thinking about diving into learning Django for an idea I want to build so this link is timely.
  • by desdiv on 2/10/17, 1:01 AM

    Dumb question, why does the guide suggest that you create an empty folder and then initialize the project from there? (django_test/mytestsite, locallibrary/locallibrary)

    As far as I can tell, no file, hidden or otherwise, is left in the outer folder.

  • by StavrosK on 2/10/17, 1:41 AM

    This looks fantastic! May I suggest some syntax highlighting so the code boxes don't look so drab, though?
  • by voycey on 2/10/17, 6:40 AM

    It has been years since I have used Django - do they still expect everything in the model to go in a single file or can you put each model in it's own file now?
  • by icn2 on 2/10/17, 2:59 AM

    Is Django restful in current version? Or I still need these if request.GET and if request.POST ?
  • by TheOneTrueKyle on 2/10/17, 12:40 AM

    Oh man, this is far superior to the official Django tutorial I think. MDN really does a good job at holding your hand through the process.

    There are moments when going through docs where way too many assumptions are made about what I know. This is where prerequisites and objectives really help out. I know what I am getting into before grokking.

  • by idiotclock on 2/10/17, 2:21 AM

    Huh. Makes me miss php