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

26 Comments

  1. 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?

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

  3. 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!

  4. (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?

  5. @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!

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

Leave A Reply

Please enter your comment!
Please enter your name here