June 26, 2020 » Django on Matt Layman » [Archived Version]
In this episode, we took a break from the regular app to work on an app for a local hackathon that I’m participating in. This is the second week for the hackathon and in this stream, I apply the final touches to the application. We work on models, a template, and build an RSS feed using Django syndication contrib app. The final presentation for the app was the next day so it was crunch time to finish everything off.
Read MoreJune 25, 2020 » Django on Matt Layman » [Archived Version]
In the previous Understand Django article, we encountered forms and how forms allow your application to receive data from users who use your site. In this article, you’ll see how to take that data and store it into a database so that your application can use that data or display it later. 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 MoreJune 24, 2020 » Django Chat » [Archived Version]
Kalob is a developer and educator for Wagtail, the popular Django-based CMS.
Read MoreJune 21, 2020 » Tinker, Tamper, Alter, Fry » [Archived Version]
We’ve recently begun dockerizing our applications in an effort to make development and deployment easier. One of the challenges was establishing a good baseline Dockerfile which can maximize the benefits of Dockers caching mechanism and at the same time provide minimal application images without any superfluous contents.The basic installation flow for any Django project (let’s […]
Read MoreJune 17, 2020 » Django Chat » [Archived Version]
Jeff is a partner at REVSYS and a Director of the Python Software Foundation. We discuss modern development tools including Github Actions, Docker, Tailwind, and more.
Read MoreJune 3, 2020 » Django Chat » [Archived Version]
Daniel and Audrey Feldroy are the authors of the updated book Two Scoops of Django as well as Django Crash Course. They created the popular cookiecutter, cookiecutter-django, and django-crispy-forms packages, as well as the Django Packages website.
Read MoreMay 28, 2020 » Django on Matt Layman » [Archived Version]
In this episode, I worked on a views and templates. There are a number of core pages that are required to flesh out the minimal interface for the app. We’re building them. I began by showing the page that we were going to work on. I outlined the changes I planned to make, then we started. The first thing we added was data about the school year, the main model on display in the page.
Read MoreMay 27, 2020 » Django Chat » [Archived Version]
David is the author of the popular django-rest-framework-simplejwt package. We discuss authentication, JWTs, and his current role at an AI startup.
Read MoreMay 23, 2020 » Clivern » [Archived Version]
You can do that in Django using a middleware. The middleware needs to generate a unique request id (e.g. using UUID) and associate that id with the request. First way is to attach that id to the request.META in the middleware. the only problem is that you have to fetch that id from the request […] The post Adding a Unique Request ID to Each Request in Django first appeared on Clivern.
Read MoreMay 21, 2020 » Django on Matt Layman » [Archived Version]
In this episode, I replaced the default Django test runner to use pytest. We walked through installation, configuration, how to change tests, and the benefits that come from using pytest. We started by looking at the current state of the test suite to provide a baseline to compare against. After that, I went to PyPI to find the version of pytest-django that we wanted to install. I added the package to my requirements-dev.
Read More