web | https://www.mattlayman.com/tags/django/ |
---|---|
Author |
Sept. 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 MoreAug. 26, 2020 » Django on Matt Layman » [Archived Version]
In the previous Understand Django article, we used models to see how Django stores data in a relational database. We covered all the tools to bring your data to life in your application. In this article, we will focus on the built-in tools that Django provides to help us manage that data. From Browser To DjangoURLs Lead The WayViews On ViewsTemplates For User InterfacesUser Interaction With FormsStore Data With ModelsAdminister All The ThingsAnatomy Of An ApplicationUser AuthenticationMiddlewar…
Read MoreAug. 20, 2020 » Django on Matt Layman » [Archived Version]
In this episode, we polished some parts of the application. Now that my first customer is using the app regularly, the feedback is coming in rapidly. We worked to fix some of the issues that she found. The first issue that I tackled dealt with ambiguity about a course’s relationship to a school year on the course’s detail page. I fixed this issue by displaying the grade level on the course page to provide all the details.
Read MoreAug. 13, 2020 » Django on Matt Layman » [Archived Version]
In this episode, I worked on rendering a calendar of important events in a school year. We built out the appropriate data structures, and I wrote some new model methods and added tests. On the last stream, I created a new model to track breaks in the school year. The app now shows the calendar for the school year, and I want to display the breaks on the calendar. Before digging too far into the code, I provided my thoughts about using Docker for development from a question that came from the ch…
Read MoreAug. 6, 2020 » Django on Matt Layman » [Archived Version]
In this episode, we did some Django model development. I created a new model to track break days in a school year. This model will be critical to fill in vacations and holidays so that the scheduling functionality works properly. I added the model, the tests, the admin page, and the create view to create break days in the app. We started by picking a model name and discussing naming in programming.
Read More