-
Notifications
You must be signed in to change notification settings - Fork 16
Learning Django
As per learning any new programming language, do not copy and paste, code out all examples
note: If you do try to use Django, without understanding how it works, you will waste days debugging simple things that are explained in the following tutorials. If you try to learn Django without at least understanding the fundamentals of Python, you will struggle. You will also need to have a basic understanding of HTML and CSS.
-
Django is a Python framework, if you do not understand Python 3 you will struggle a lot.
- At the minimum learn up to classes
- Read PEP8, the official Python style guide
-
Read the Mozilla guide to html forms, some newcomers fail to understand web forms, and the official Django tutorial does not give this important topic enough emphasis imho. https://developer.mozilla.org/en-US/docs/Learn/HTML/Forms
-
Django means using a database, and if you do not understand how to build a relational database you will struggle.
-
Do the official Django tutorial, twice. Yes twice, the first time you will struggle, the second time the key concepts will become more clear
https://docs.djangoproject.com/en/stable/intro/tutorial01/ -
Mozilla use Django in production Complete the Mozilla Django tutorial, the have a very detailed and helpful tutorial. One of my favorite parts, the project is not a Blog and uses multiple tables 5, reflecting an actual real world project.
https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django
This is doable in 2-3 days, faster if you really push it -
Read about HTTP: https://developer.mozilla.org/en-US/docs/Web/HTTP
-
Mozilla is the best site for all things web
Videos - There are some quality videos out there, Justin Mitchell, Corey Schafer but there are lots that are not. Video learning can be very helpful but you are not going to understand Django completely by watching one video. Other than the ones mentioned, videos are simply not as comprehensive as other sources.
- If you decide to use a video to learn, keep in mind you will still need to learn to use the official documentation.
- If a video does not have an up to date GitHub repo for the code, find another.
Closing Note: If you do try to use Django, without understanding how it works, you will waste days debugging simple things that are explained in the above tutorials. If you try to learn Django without at least understanding the fundamentals of Python, you are setting yourself up for failure.