
Already know some of this? A 2-minute test skips the lessons you know.
Take the placement testA free 18-lesson course built from CodeWithHarry's 2h 56m of YouTube video. 2 days at 90 minutes a day, with study notes and a quiz in every lesson. A 2-minute placement test skips what you already know.
Taught by CodeWithHarry on YouTube. Videos play in YouTube's own player, so the creator keeps every view.
Set up the development environment by installing Python, Visual Studio Code, the Django extension, and creating a virtual environment.
Create a Django project using `django-admin startproject`, understand the project structure, and run the development server.
Explain how websites work via the request-response cycle and describe Django's Model-View-Template (MVT) architecture.
Create a Django app using `startapp`, register it in settings, and distinguish between project-level and app-level files.
Configure URL routing by connecting project `urls.py` to app `urls.py` and mapping URL patterns to views.
Write views that render templates, pass context dictionaries to templates, and use Django template language for variable interpolation.
Configure `STATICFILES_DIRS` and `TEMPLATES` in `settings.py` to serve CSS, JS, and images correctly.
Add Bootstrap via CDN, use starter templates, and build a responsive navbar with dropdowns for the ice cream shop project.
Customize the Django admin site header, title, and index title; create a superuser; and explore the built-in authentication models.
Create a `base.html` with block placeholders and extend it in child templates to share headers, footers, and navigation across pages.
Design a contact form using Bootstrap classes, set up form `method=post`, add CSRF token, and configure input fields with names and placeholders.
Define a Contact model, run `makemigrations` and `migrate`, register the model in admin, and save POST data to the database via views.
Use the Django shell to query the database with `objects.all()`, `filter()`, `get()`, `first()`, `last()`, and field lookups like `startswith`.
Implement flash messages using `messages.success`, display them in templates with template tags (`if`, `for`), and style dismissible alerts.
Create a second Django project for authentication, configure `ALLOWED_HOSTS`, create a `home` app, and set up URLs for login, logout, and home.
Write views using `authenticate`, `login`, and `logout` from `django.contrib.auth`; protect routes by checking `request.user.is_authenticated`.
Apply Bootstrap `form-control` classes to login inputs, fix naming conflicts in views, and test login/logout with superuser and regular users.
Review the two completed projects, encourage extending the codebase, and point to further Django and Python resources.