Blog | Matt Layman |
---|---|
RSS 2.0 Feed | Django on Matt Layman |
web | https://www.mattlayman.com/tags/django/ |
Last Update | 11.20.2024 |
Posts | 336 |
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 | 11.20.2024 |
Posts | 336 |
March 26, 2020 » Django on Matt Layman » [Archived Version]
In this episode, we worked on the progress element that will display in every step of the onboarding flow. I added some labels and styled the banner using Tailwind CSS. At the end of the stream, we boxed in the shape of the welcome page with some placeholder elements. The very first thing I did was insert a top bar that was unstyled to the top of the welcome page. We added some placeholder text for each of the steps in the onboarding flow.
Read MoreMarch 19, 2020 » Django on Matt Layman » [Archived Version]
In this episode, we did some design work to plan out the onboarding flow for new users. I spoke through my design process, outlined what a new user will need to do to succeed, wrote down the plan in GitHub issues, then started to implement that flow. I started the stream with a quick fix to the main app view. After that, we started a new project in the app. I needed to design the starting experience for a user.
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 4, 2020 » Django on Matt Layman » [Archived Version]
In this episode, I added styling to the Sign Up page of the site. We chatted about CSS tools and frameworks, the benefit of feature flags to control what UI is displayed to users, and how to use Tailwind CSS to modify a design quickly. In the first portion of the stream, we focused on CSS frameworks. We compared Bootstrap, Semantic UI, and Tailwind CSS. After that discussion, I talked about feature flags.
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. 20, 2020 » Django on Matt Layman » [Archived Version]
In this episode, we added content to a template and talked about the N+1 query bug. I also worked tricky logic involving date handling. The first change was to update a course page to include a new icon for any course task that should be graded. After adding this, we hit an N+1 query bug, which is a performance bug that happens when code queries a database in a loop. We talked about why this happens and how to fix it.
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 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 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/…
Read More