
Learn how to build and launch a web application with Django, a Python-based framework, exploring databases, sessions, security, and login features step by step.
Map your first Django url by updating urls.py to bind an empty string to the home page view, import the view, and test the new path on the running server.
Create and wire up multiple views for a Django app, adding about and contact pages, updating the URL configuration, and letting Django handle clean URL paths.
Learn how to render context in Django templates by passing a context dictionary and using double curly braces to substitute variables like title.
Explore Django template tags to conditionally render data for authenticated users, loop through context lists, render variables, and use built-in filters, with logic split between templates and views.
Explore how Django turns static pages into dynamic data in a database, using apps as components like a blog app with a blog post model and its text field.
Learn how to robustly fetch objects with get_object_or_404 in Django, handling integer and string lookups, validating id fields, and avoiding page not found errors.
Explore five crud-like views in Django, listing objects, detailing a single post, and preparing create, update, and delete interactions using templates and forms discussed for the blog.
Fetch all blog post objects with a Django queryset using the all() method and render them in a blog post list view template.
Use modular apps and the include function to compose clean, non-redundant Django URLs, pulling in a blog URL module with a slug-based create view and top-to-bottom matching.
Learn to protect Django views using the login_required and staff_member_required decorators, configure login URLs, and associate blog posts with specific users for secure, role-based access.
Improve validation on update views by excluding the instance from uniqueness checks. Learn to inspect the form instance and apply queries to keep updates error-free on title, slug, and content.
Implement a safe delete workflow in Django 2.2 using a post request to delete objects, show a confirmation page with a CSRF token, and redirect afterward while requiring staff access.
Explore how to use Django's include tag with arguments to create reusable inline templates for blog lists, passed objects, and consistent card layouts across pages.
Leverage a Django model manager and a custom query set to filter posts by publish date, showing only those published, and reuse this logic across views.
Try Django 2.2 is the latest in a line of Try Django series. This one covers the latest version of Django by building a blog application.
Python is one of the best programming languages in the planet. Why? For a few reasons:
It's proven & scalable
It's open-source
The Internet of Things and Raspberry Pi
It's leading the change for future technology
Proven & Scalable: Python runs Instagram's backend. It also run's Pinterest's, NASA, Mozilla, and countless others. It scales.
Open-Source: Open source technology means **anyone** can change it. Literally anyone. Are you in New Zealand? Yup you can change the code. Are you in Argentina? Yup, go ahead change it. Open-source changes the game for everyone because we can all use it.
Internet of Things (IoT) and Raspberry PI Connected devices are coming in waves. The easiest way to connect to these devices is using the Raspberry Pi and writing code in Python. Python is versatile so it makes controlling real-world objects with Raspberry Pi simple.
Pushing the Bounds of Future Technology Python is leading the charge in artificial intelligence with things like OpenCV, TensorFlow, PyBrain, and many others.
Sooo... Python is cool but why is this called Try Django? What's Django?
***
Django will be the backbone for your projects.
***
If you work with Python, the chances are good you need internet-connected data that stored securely and is reliable. This is where Django comes in. Django is a web-framework that can handle all of your data and handle it better than any web framework out there.
Django is the #1 Web Framework for Python for a reason: it's easy enough for the beginners and yet powerful enough for the pros. Instagram uses Python by way of Django. So does Pinterest. And Nasa. And Mozilla. It may not be the only technology that they use but its... the backbone of them all.
If Python is the future behind underlying technology, Django will be it's close cousin and if you love Python, Django will soon become your friend.
Cheers!
Justin