
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.
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.
Learn how Django serves static files like CSS, JavaScript, and images by configuring the static files directory in settings and loading static in templates.
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.
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.
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.
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.