Live data from Hacker News

Learn web development: Django Web Framework

developer.mozilla.org

1–10 of 54 posts

Re: Learn web development: Django Web Framework

#4
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.

Re: Learn web development: Django Web Framework

#5
post #2

Great to see Mozilla supporting Django. But isn't the official Django tutorial cover all of this, Why not just link to it?

Django's basic tutorial is great to get started, but once you get into the nitty gritty I find myself often going to stacks rather than the docs to get the information I need because the docs get kinda sparse.

One example is if you want to forgo modelforms and pass the information from the forms to the model manually through your view (for example because you want to manipulate the information before passing it to the database). I couldn't find anything in the tutorial that gave clear instructions on this and had to go to stacks to find an example. Maybe the solution is simple and obvious for most experienced programmers, but ordinarily the django tutorial explains things clearly so even newbees like me can get into it so it was disappointing that this was not done in this instance.

Another example is sessions, here is the sessions in the official django docs -

https://docs.djangoproject.com/en/1.10/topics/http/sessions/

it's great on how to configure and set up sessions, but as soon as you get to how you use sessions in views it gets vague, confusing and way too sparse for what its trying to explain. I didn't know how to use sessions after reading it.

Re: Learn web development: Django Web Framework

#6
post #5
post #2

Great to see Mozilla supporting Django. But isn't the official Django tutorial cover all of this, Why not just link to it?

Django's basic tutorial is great to get started, but once you get into the nitty gritty I find myself often going to stacks rather than the docs to get the information I need because the docs get kinda sparse. One example is if you want to forgo modelforms and pass the information from the forms to the model manually through your view (for example because you want to manipulate the information before passing it to th…

I think the Django docs are pretty comprehensive in the scheme of things. Maybe not perfect but better than average in this space.

Re: Learn web development: Django Web Framework

#7
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.

Re: Learn web development: Django Web Framework

#8
post #6
post #5

Earlier quoted context omitted.

Django's basic tutorial is great to get started, but once you get into the nitty gritty I find myself often going to stacks rather than the docs to get the information I need because the docs get kinda sparse. One example is if you want to forgo modelforms and pass the information from the forms to the model manually through your view (for example because you want to manipulate the information before passing it to th…

I think the Django docs are pretty comprehensive in the scheme of things. Maybe not perfect but better than average in this space.

I would definitely agree with that, the first we program I tried to work with was PHP and I think I might have given up on programming altogether had I not discovered django with it's much better documentation.

I appreciate what they have done and appreciate the time and effort the Django team put into their documentation, but more is always better and I think other independent contributions on how to use django are also needed, especially since most of the published books you can find on how to use django are out of date

Re: Learn web development: Django Web Framework

#9
post #5
post #2

Great to see Mozilla supporting Django. But isn't the official Django tutorial cover all of this, Why not just link to it?

Django's basic tutorial is great to get started, but once you get into the nitty gritty I find myself often going to stacks rather than the docs to get the information I need because the docs get kinda sparse. One example is if you want to forgo modelforms and pass the information from the forms to the model manually through your view (for example because you want to manipulate the information before passing it to th…

I'm not trying to be argumentative, but to me https://docs.djangoproject.com/en/1.10/topics/http/sessions/... is pretty thorough. Did you come into Django knowing Python already?
Post reply on HN