
Learn to build web apps with Django 2.0 and Python, covering templates, views, models, admin, authentication, and deploying a simple crud app on Heroku and Amazon.
prepare the Windows environment for Django by installing Python 3, creating and activating a virtual environment, installing Django, creating a project, and running migrations and a superuser.
Define how a django app handles a request by mapping a url to a view, using wsgi, and returning an httpresponse or template, demonstrated with a hello world example.
Explore how to define Django models as Python classes, describe fields and relationships, add methods like get_full_name, and perform migrations to update the database schema.
Explore how to customize Django admin by registering models with admin classes, configuring list_display, search_fields, and filters to manage data efficiently with minimal code.
Learn how Django views handle the request lifecycle, from URL resolution to returning an HttpResponse. Explore function-based views, class-based options, and template integration with models and URLs.
Configure the templates directory, create and render Django templates, pass context data, and use Jinja-style loops and conditionals to display lists and dynamic content.
Learn how Django 2.0's new URL mechanism simplifies routing with dynamic URL patterns, by importing a special case function and passing parameters to views for dynamic year handling.
Learn how Django serves static files like CSS, JavaScript, and images by configuring the static files directory in settings and loading static in templates.
Read and list all clients by querying the database, render them in a template, and route the read view to the clients url for easy access.
Create a new client record in Django 2.0. Use a ModelForm and view to validate input, save to the database, and redirect, with media uploads and CSRF protection.
Learn how to implement the update step in django CRUD by fetching a client by id, pre-filling a form, validating, saving changes, and redirecting to the client list.
Implement delete functionality in django by confirming before deletion, removing the client object from the database, and redirecting to the client list after a post request.
https://docs.djangoproject.com/en/2.0/topics/auth/default/
Links for this class:
Explain and implement a one-to-one relationship in Django, using a unique id field to link a diskless record to a client, with cascade delete and migration steps.
Explore how to implement many-to-many relationships in Django by linking sales and products, creating a sale item model, defining a many-to-many field, running migrations, and selecting multiple products per sale.
Configure a django project for deployment on Heroku, a platform as a service, by installing dependencies, creating required settings files, and initializing a git repository with ignore rules.
Deploy a Django app to Heroku, push code, install dependencies, run migrations, and create a superuser to verify the app online; manage media and set debug off for production.
Integrate bootstrap via the Bootstrap CDN into your Django-based project, using a base template and blocks to enhance styling, while preparing deployment on Heroku.
Style django forms with bootstrap using django-bootstrap-forms and a base template with a container, grid, and jumbotron, loading bootstrap via cdn for a responsive layout.
Apply Bootstrap's grid system to style the client list into two columns, format action buttons, and polish login and logout forms for a cohesive user interface.
Update and deploy a Django project to Heroku by pushing changes, running makemigrations and migrate online, installing requirements, collecting static files, and testing user flows after deployment.
Learn to configure Amazon S3 as remote storage for Django apps, creating IAM users and S3 buckets, integrating django-storages with boto3, running collectstatic, and deploying to Heroku while securing credentials.
In this course, we are going to cover websites and web applications using the latest version (2.0) of Django web framework.
We will go deep step-by-step into the Django framework understanding the whole request life cycle.
By the end of this course, you are going to have your own web application ( a Client manager ) published online in a highly reliable web server ( Heroku ) using the best practices in a very professional way.