web | https://www.mattlayman.com/tags/django/ |
---|---|
Author |
Oct. 8, 2020 » Django on Matt Layman » [Archived Version]
In this episode, I added a landing page design to the app that I’m building. By using a Tailwind CSS landing page template, I could fit the design in with my existing CSS tools. I showed some available templates that I discovered while researching for Tailwind-based landing pages. Once I found a decent template, I copied the source of sample landing page into my index page template. Since I copy and pasted from the landing page, the initial look was terrible.
Read MoreOct. 6, 2020 » Django on Matt Layman » [Archived Version]
You have an upset customer with a really thorny problem on your Django-powered website. Your customer used your help ticket system and reported their woe. You’ve done your due diligence and have already checked: The logs from your site show nothing interesting related to the customer’s actions The error tracking system reveals no exceptions from what the customer did The customer’s description doesn’t contain enough info to diagnose the problem fully The experiments in …
Read MoreOct. 1, 2020 » Django on Matt Layman » [Archived Version]
In this episode, I integrated the bandit static analysis tool to do automated security checking of my code before each commit. We talked about pre-commit and how to add in a new hook. After finishing that tool addition, we got deep into Django while removing some messages inserted by django-allauth on sign up. We began by talking about what the bandit tool does and how it works. Once I explained bandit, I focused on the bandit documentation to see how to add the tool.
Read MoreSept. 29, 2020 » Django on Matt Layman » [Archived Version]
In the previous Understand Django article, we got deep into the Django administrators site. We saw what the site was and how to configure and customize it. In this article, we will examine what goes into an application. Applications are core elements of a Django project. 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 MoreSept. 24, 2020 » Django on Matt Layman » [Archived Version]
In this episode, we worked on a new view to display course resources. While building out the template, I used some template tags to dynamically regroup a queryset into a more useful data format for rendering. I started a new view before the stream to display content, but I had not filled it in before the stream started. We added new data to the context, and did some adjustments to the URL based on the required inputs for the view.
Read MoreSept. 15, 2020 » Django on Matt Layman » [Archived Version]
My team had two weeks to make a viable product. We were a random group of people pulled together with a desire to help our local community in Frederick, Maryland. We were a student, a web designer, a former realtor turned IT support person, and a software developer. Our mission, which was put forth by the virtual hackathon that brought us together, was to try to make a tool to help the local homeless.
Read MoreSept. 10, 2020 » Django on Matt Layman » [Archived Version]
In this episode, I worked to add breaks to the display of the week schedule. We had to update context to include the break information into the schedules. I refactored a method out of the calendar display code to make some reusable logic for handling breaks. The app needs to display breaks on the schedule and adjust what is displayed based on when the breaks are. I started with changing the background color of the break days.
Read MoreSept. 10, 2020 » Django on Matt Layman » [Archived Version]
On this episode, we will focus on the built-in Django administrator’s site. We’ll see what it is, how you can configure it, and how you can customize it to serve your needs. Listen at djangoriffs.com. Last Episode On the last episode, we explored more about models and how to interact with data in your database. What Is The Django Admin? Django includes a web administrative interface that can help programmers and non-programmers alike.
Read MoreSept. 3, 2020 » Django on Matt Layman » [Archived Version]
In this episode, I added some custom checking to ensure that students may only be enrolled in a single grade level for a school year. We talked about form cleaning and wrote a for unit test to prove that the change worked. After that change, we switched to a template and wrote copy for when no progress reports are viewable for users. With the first issue, I needed to update a form that enrolls students.
Read MoreAug. 27, 2020 » Django on Matt Layman » [Archived Version]
In this episode, we worked on two issues. The first issue was fixing incorrect projected completion dates of tasks. We used test driven development to reveal the bug and work on the fix. The second issue add some extra data to display on a page. We picked a couple of tasks at random to fix for this stream session. The first issue related to the course view when paired with what the student’s actions.
Read More