| Blog | Matt Layman |
|---|---|
| RSS 2.0 Feed | Django on Matt Layman |
| web | https://www.mattlayman.com/tags/django/ |
| Last Update | 03.15.2026 |
| Posts | 193 |
Recent content in Django on Matt Layman
| Blog | Matt Layman |
|---|---|
| RSS 2.0 Feed | Django on Matt Layman |
| web | https://www.mattlayman.com/tags/django/ |
| Last Update | 03.15.2026 |
| Posts | 193 |
April 2, 2020 » Django on Matt Layman » [Archived Version]
In the previous Understand Django article, we looked at the fundamentals of using views in Django. This article will focus on templates. Templates are your primary tool in a Django project for generating a user interface. With templates, you’ll be able to build the pages that users will see when they visit your web app. Let’s see how templates hook into views and what features Django provides with its template system.
Read MoreMarch 6, 2020 » Django on Matt Layman » [Archived Version]
On this episode, we look at views, a major component within Django and a primary place where your code will run. Listen at djangoriffs.com. Last Episode On the previous episode, we talked about URLs and how they describe the main interface that a browser can use to interact with your application. What Is A View? A view is a chunk of code that receives an HTTP request and returns an HTTP response.
Read MoreMarch 3, 2020 » Django on Matt Layman » [Archived Version]
In the previous Understand Django article, I covered URLs and the variety of tools that Django gives us to describe the outside interface to the internet for your project. In this article, we’ll examine the core building block that makes those URLs work: the Django view. From Browser To DjangoURLs Lead The WayViews On ViewsTemplates For User InterfacesUser Interaction With FormsStore Data With ModelsAdminister All The ThingsAnatomy Of An ApplicationUser AuthenticationMiddleware Do You Go?
Read MoreFeb. 26, 2020 » Django on Matt Layman » [Archived Version]
In this episode, we worked on a weekly view for the Django app. We made navigation that would let users click from one week to the next, then fixed up the view to pull time from that particular week. The first thing that I did was focus on the UI required to navigate to a new weekly view in the app. We mocked out the UI and talked briefly about the flexbox layout that is available to modern browsers.
Read MoreFeb. 6, 2020 » Django on Matt Layman » [Archived Version]
I’ve started a podcast! The podcast is called Django Riffs, and my goal is to help beginners learn how to use Django. You can find the show at djangoriffs.com or check iTunes, Spotify, or wherever you get podcasts. Each episode of the podcast will be a topical exploration of one facet of the Django web framework. With many years of Django under my belt, I believe I have the experience to help beginners on their journey into learning Django.
Read MoreFeb. 6, 2020 » Django on Matt Layman » [Archived Version]
In this episode, we worked on an edit view. We used Django’s generic UpdateView to aid the process and test drove the creation of the view to verify things every step of the way. We worked on a view to make it possible to edit the CourseTask model that are the actions that a student must complete for a course. To complete the form quickly, I took advantage of Django’s ModelForm views.
Read MoreJan. 31, 2020 » Django on Matt Layman » [Archived Version]
On this episode, we discuss Django’s front door, URLs. We talk about what URLs are, how to build them in Django, and the functions Django provides to work with URLs. Listen at djangoriffs.com. What’s a URL? A URL is a Uniform Resource Locator. It is the full address that goes into a browser. Consider https://www.mattlayman.com/django-riffs/. Here are the parts: Scheme, https:// Domain name: Top Level Domain (TLD), com Domain, mattlayman Subdomain, www Path or route, /django-riffs/ URLconf …
Read MoreJan. 30, 2020 » Django on Matt Layman » [Archived Version]
Welcome to the show notes for the first episode of Django Riffs! Django Riffs is a podcast for learning web application development in Python using the Django web framework. Listen at djangoriffs.com. Who Is This For? This podcast is for absolute Django beginners. No prior knowledge of Django or web development is expected. Experienced users may learn something new or get a good refresher from topics they might have missed in the documentation.
Read MoreJan. 22, 2020 » Django on Matt Layman » [Archived Version]
In the last article in the Understand Django series, we saw how a user’s browser request goes from their browser to Django’s “front door.” Now it’s time to look at how Django processes those requests. An HTTP request coming from a browser includes a URL describing which resource Django should produce. Since URLs can come in many forms, we must instruct Django on the kinds of URLs that our web application can handle.
Read MoreJan. 15, 2020 » Django on Matt Layman » [Archived Version]
In this episode, we added django-allauth to create accounts that default to email instead of using usernames. We added the package, configured some templates, and created tests. We continued to look at Will Vincent’s django-allauth post on creating user accounts with email and passwords. django-allauth let’s us swap out username and email so that users won’t need to create a username, which is the behavior that I want for this service.
Read More