Python Django – The Practical Guide
-
Getting Started
-
Course Setup
-
URLs & ViewsModule Introduction2m 45sCreating a New Project0sWhat are URLs & Views?0sCreating a First View & URL0sAdding More Views & URLs0sDynamic Path Segments & Captured Values9m 35sPath Converters0sAdding More Dynamic View Logic0sRedirects0sThe Reverse Function & Named URLs0sReturning HTML0sPracticing URLs, Views & Dynamic View Logic0sSummary0sUseful Resources & Links
-
Templates & Static FilesModule Introduction3m 55sAdding & Registering Templates0sRendering Templates0sTemplate Language & Variable Interpolation0sExercise Solution0sFilters0sThe Django Visual Studio Code Extension0sTags & the “for” Tag0sThe URL Tag for Dynamic URLs0sThe “if” Tag for Conditional Content0sTemplate Inheritance0sExercise Solution0sIncluding Partial Template Snippets0sMore on the Django Template Language (DTL)404 Templates0sAdding Static Files0sAdding Global Static Files0sAdding CSS Styling0sBuilding Static URLs DynamicallySummary0sUseful Resources & Links
-
Course Project: Building a Blog – The BasicsModule Introduction0sSetting Up the Starting ProjectPlanning the Project0sAdding URLs & Views0sAdding First Templates0sTemplate Content & Static Files0sAdding Images as Static Files0sAdding the “All Posts” Page & Style0sLinking the Pages0sAdding the “Single Post” Page0sAdding Dummy Data to the “Views” File0sSpecial Template Features & Syntax0sAdding a Single Post Page0sAdding a 404 Page0sUseful Resources & Links
-
Data & ModelsModule Introduction0sDifferent Kinds of Data0sUnderstanding Database Options0sUnderstanding SQL0sDjango Models0sCreating a Django Model with Fields0sMigrations0sInserting Data0sGetting all Entries0sUpdating Models & Migrations0sBlank vs Null0sUpdating Data0sDeleting Data0sCreate Instead of Save0sQuerying & Filtering Data0s“or” Conditions0sQuery Performance0sBulk OperationsPreparing Templates0sRendering Queried Data in the Template0sRendering the Details Page0sModel URLs0sAdding a Slugfield & Overwriting Save0sUsing the Slug & Updating Field Options0sAggregation & Ordering0sSummary0sUseful Resources & Links
-
Admin
-
RelationshipsModule Introduction0sUnderstanding Relationship Types0sAdding a one-to-many Relation & Migrations0sWorking with Relations in Python Code0sCross Model Queries0sAdding a one-to-one Relation0sOne-to-one Python Code0sOne-to-one & Admin Config0sSetting-up many-to-many0sUsing many-to-many in Python0sMany-to-many in Admin0sCircular Relations & Lazy RelationsSummary0sUseful Resources & Links
-
Course Project – Building a Blog: Data & ModelsModule Introduction0sPlanning the Data Models0sAdding a Post Model0sAuthor Model & one-to-many0sTag Model many-to-many0sRegistering Models for Admin0sMigrations & Admin Login0sAdding Data via Admin0sConfiguring the Admin Panel0sFetching Posts for Starting Page0sAll Post & Single Post Pages0sUsing Author & Tags Data0sSummary0sUseful Resources & Links
-
FormsModule Introduction0sStarting Setup0sAdding a Dummy Form0sGet & Post Requests0sCSRF Protection0sHandling Form Submission & Extracting Data0sManual Form Validation & the Problems with “that”0sUsing the Django Form Class0sValidation with Django Forms0sCustomizing the Form Controls0sCustomizing the Rendered HTML0sAdding Styling0sAdding More Form Controls0sStoring Form Data in a Database0sIntroducing Modelforms0sConfiguring the Modelform0sSaving Data with a Modelform0sClass Based Views0sSummary0sUseful Resources & Links
-
Class Views
-
File UploadsModule Introduction0sStarting Setup0sMaking the File Upload Work0sStoring Uploaded Files Naive Approach0sAdding a Form with a Filefield0sUsing Models for File Storage0sUsing an Imagefield0sUsing a CreateView0sWorking with the File Field0sServing Uploaded Files0sSummary0sUseful Resources & Links
-
Sessions
-
Course Project: Building a Blog – Forms, Files & SessionsModule Introduction0sAdding an Imagefield to the Post Model0sServing Uploaded Files0sConverting Views to Class Based0sStyling the Comment FormHandling Comment Form Submission0sComment Form Validation Styles0sOutputting Comments0sStyling the Comments0sComment Admin0sRead Later Starting Setup0sManaging Read Later via Session0sRead Later Page & Styling0sFinishing the Read Later Feature0sUseful Resources & Links
-
DeploymentModule Introduction0sDeployment Considerations0sWhich Database0sDjango & Web Servers0sServing Static Files0sChoosing a Hosting Provider0sGetting Started & Revisiting Settings0sCollecting Static Files0sServing Static Files0sA Note About Migrations0sLocking in Dependencies0sMore on Virtual EnvironmentsUsing Environment Variables0sDeploying with Elastic Beanstalk0sSSL & Custom Domains0sConnecting PostgreSQL0sServing Static Files Separately0sServing Static Files via S30sMoving File Uploads to S30sSummary0sUseful Resources & Links
-
Optional: Django Summary & Quick IntroductionModule Introduction0sWhat & Why?0sSetup & Analyzing the Project Folder0sWorking with Apps0sURLs & Views0sGetting Started with Templates0sStatic Files & First Steps with the Django Template Language0sKey Django Template Language Features & Tags0sUsing What we Learned0sAdding a Detail Page0sDynamic Paths0sDynamic URLs in Templates0sUsing Template Inheritance0sIncludes0sWhat is Data?0sGetting Started with Models0sUsing the Admin Panel0sQuerying Data0sAdding Image Upload0sServing & Displaying Images0sConfiguring the Admin Area0smany-to-many Relations0sMore Meetup Fields & Outputting Related Data0sCreating a Modelform0sHandling Form Submission0sMore on Form Submission & Validation0sFrom Modelform to Form0sPolishing Organizer Email0sOptimizing URLs0sWrap Up0sUseful Resources & Links
-
Bonus
Python is the most popular programming language of the world – it is versatile, easy to learn and very powerful!
But one of the primary things you can build with Python is a website! You can use Python for web development.
And to make that easier, you would typically use a framework like Django – simply because that allows you to focus on your core business logic and you don’t need to re-invent the wheel and implement all the nitty-gritty technical details from scratch.
This course is about Django – the most popular Python web development framework out there!
Django covers all aspects of web development – from handling requests and responses, over rendering dynamic HTML pages with templates, all the way up to making database access and data management easy. It’s all baked in and it’s all covered in great detail in this course!
This course teaches Django from the ground up – you don’t need to know anything about it to get started. Basic Python and web development knowledge is all you need.
We’ll start at the absolute basics and understand how to create Django project, how to run them and how to add features – step by step.
In detail, this course covers:
-
Installing Django
-
Creating and understanding Django projects
-
Understanding URLs, views, requests and responses
-
Working with templates and static files like CSS and images
-
Working with data and models
-
Connecting data with relationships (one-to-many, one-to-one, many-to-many)
-
Querying data with Django’s powerful model solution
-
Adding administration panels to your projects
-
Handling user input with forms – manually and with Django’s built-in form support
-
Advanced features like class-based views (and when to use them)
-
Dealing with file uploads and how to serve uploaded files
-
Working with sessions
-
In-depth deployment instructions and examples
-
Different ways of deploying and serving static files and user uploads
-
And much more!
All those concepts are taught in great depth and backed up by a complete example course project where we build a “Blog website” from the ground up.
Therefore, you’ll learn all the important concepts and the theory and you’re also going to be able to see it applied to a real project.
Hence, once you completed the course, you’ll have a very solid understanding of Django and you’ll be able to dive into your own Django projects!
What's included
- 23 hours on-demand video
- 24 articles
- 1 downloadable resource
- Access on mobile and TV
- Certificate of completion