Python Django Tutorial for Beginners – Learn Django for a career in back-end development. This Django tutorial teaches you everything you need to get started.
– Get the complete Django course (zero to hero): https://bit.ly/3E7Iq4d
– Subscribe for more Django tutorials like this: https://goo.gl/6PYaGF
Other resources:
Python Tutorial for Beginners: https://youtu.be/_uQrJ0TkZlc
MySQL Tutorial for Beginners: https://youtu.be/7S_tz1z_5bA
Want to learn more from me? Check out these links:
– Courses: https://codewithmosh.com
– Twitter: https://twitter.com/moshhamedani
– Facebook: https://www.facebook.com/programmingwithmosh/
– Blog: https://programmingwithmosh.com
TABLE OF CONTENT
0:00:00 – Introduction
0:00:58 – Prerequisites
0:01:38 – How to Take this Course
0:02:40 – Getting Started with Django
0:03:19 – What is Django?
0:06:08 – How the Web Works
0:10:32 – Setting Up the Development Environment
0:12:33 – Creating Your First Django Project
0:18:44 – Using the Integrated Terminal in VSCode
0:22:05 – Creating Your First App
0:25:36 – Writing Views
0:27:27 – Mapping URLs to Views
0:32:10 – Using Templates
0:36:19 – Debugging Django Applications in VSCode
0:44:11 – Using Django Debug Toolbar
0:48:37 – Building a Data Model
0:49:21 – Introduction to Date Modeling
0:52:00 – Building an E-Commerce Data Model
0:56:35 – Organizing Models in Apps
#Django #Python
Django is the most popular framework for quickly building production-grade backends with Python. That’s why a lot of companies use it and are looking for developers with Django skills. If you know Python and are looking for a career in backend development, you must have Django on your resume.
source
Get the Ultimate Django course (zero to hero): https://bit.ly/3E7Iq4d
I got an error when installing the toolbar " No module named 'playgrounddebug_toolbar'. Do you have any idea what this refers to?
Please mosh can you create new node course 🙏
Note that only Django core commands are listed as settings are not properly configured (error: Requested setting INSTALLED_APPS, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.). when do you get it? how to get rid of it?
I was stuck at one place for quite sometime , today as a beginner could finally launch Django..Thank you Mosh, great video.
To Windows users, you may attempt the following settings.json
"python.pythonPath": "C:\Users\<your users>\AppData\Local\Programs\Python310\python.exe"
nice tutorial
Thanks for the video. One minor issue: at 20:15, I am not seeing a settings.json file or vs code folder automatically created. I looked online and it looks like several others are also experiencing the same problem. Most solutions are saying you have to go to preferences and turn off A/B experiments, but that's not working for me either. So I'm not able to set a path to the python interpreter that is local to the environment
17:05
phenomenal
the end
I am using Windows 11 and VS Code 17.1.2. Haven't been able to figure out how to add the python interpreter as required. There is no Command Palette option. I have tried the internet , and the Add Environment option in a python project, but haven't been able to complete the installation. Can you help me? Thanks!
What Terminal is he using ? My mac terminal is whole different i cant do the first django process , Can somebody please Help
Hi Mosh! Thanks for the great tutorial
(BEN-P_b0XtCV) C:UsersBENDesktopstorefront>python manage.py runserver
Traceback (most recent call last):
File "C:UsersBENDesktopstorefrontmanage.py", line 11, in main
from django.core.management import execute_from_command_line
ModuleNotFoundError: No module named 'django'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:UsersBENDesktopstorefrontmanage.py", line 22, in <module>
main()
File "C:UsersBENDesktopstorefrontmanage.py", line 13, in main
raise ImportError(
ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment? Cmd is returning this. What could the issue be?
@31:55 I received an error message at this point:
Page Not Found (404)
Using the URLconf defined in storefront.urls, Django tried these URL patterns, in this order:
admin/
playground/
The empty path didn’t match any of these.
Did anyone else get this error message and figure out how to fix the issue? I tried importing os in the settings.py module and filling out the DIRS value in the TEMPLATES array, as suggested by another person who encountered this problem. That did not fix the issue. Stuck here. Any help appreciated!
Which terminal are you using.
How you got these colors in the terminal?
DO tell me too, as in VS-code terminal that solo-color creates a huge trouble.
Lol @4:26
Can anyone let me know..should I learn javascript for become a python web development
are you from iran ????
داداشم ماش عزیز
If at 20:19 you don't have a settings.json file and then can't get the venv up, follow these steps: https://stackoverflow.com/questions/54106071/how-can-i-set-up-a-virtual-environment-for-python-in-visual-studio-code
If in doing that, it still fails because of not being able to run scripts, follow these steps: https://stackoverflow.com/questions/4037939/powershell-says-execution-of-scripts-is-disabled-on-this-system
are you persian ?
cuz your accent screams
django is hard
Please uploaded full course
Debug toolbar doesn't work, might be just me but is it broken? runnin on win 10 brave browser, doesn't throw any errors, but the toolbar doesn't show up either