May 3, 2020 » Valentino Gagliardi - Django RSS Feed » [Archived Version]
Most approaches to using webpack with Django work until the JavaScript app is tiny. What happens when the bundle grows?
Read MoreMay 3, 2020 » django on roschegel » [Archived Version]
The Django ORM (Object Relational Mapping) is one of the most powerful features of Django. It enables us to interact with the database using Python code instead of SQL. It has multiple advantages: The database engine is abstracted from us, so it is possible to switch to another database system with ease. It supports migrations: we can easily change our tables by updating our models and Django will automatically generate the migration scripts needed to update the database tables. It supports tr…
Read MoreApril 30, 2020 » Django on Matt Layman » [Archived Version]
In this episode, we worked on issues found from a round of user testing. I talked about how I did user testing with my customer, then started to tackle the usability issues that she identified. We’re taking a break from building the onboarding flow so that we can take some time to address feedback from user testing with my customer. I started the stream by explaining how I set up user testing and what I got out of the experience.
Read MoreApril 29, 2020 » Django Chat » [Archived Version]
Dane is the author of a new book, Practices of the Python Pro. We discuss using Django at scale, pytest, and teaching beginners.
Read MoreApril 28, 2020 » Valentino Gagliardi - Django RSS Feed » [Archived Version]
Django REST generic views are amazing, but working with request.data in Django REST framework can be tricky ...
Read MoreApril 23, 2020 » Paolo Melchiorre » [Archived Version]
Howto guide for upgrading PostgreSQL from version 11 to 12 on Ubuntu, after its upgrade from version 19.10 to 20.04 (Focal Fossa).
Read MoreApril 23, 2020 » Django on Matt Layman » [Archived Version]
In this episode, we continued with onboarding. I added unit tests for the new form and explained how foreign keys are wired through in CreateView. Then we marched on to the next template in the flow. In the last stream, we set all the context data for the view that shows the form to create a grade level for the school. With the context in place, and the form structure set, I added the form class that will create the GradeLevel record.
Read MoreApril 22, 2020 » Django Chat » [Archived Version]
Katie is a Developer Advocate for Google and regular conference speaker. We discuss advanced deployment techniques and tools such as Google Cloud Run, relational vs non-relational databases, Terraform, and more.
Read MoreApril 20, 2020 » Thomas Loiret - Random thoughts » [Archived Version]
Script that helps you to delete your Google Calendar passed events.
Read MoreApril 16, 2020 » Django on Matt Layman » [Archived Version]
In this episode, we glued together some of the onboarding steps. I added data validation so that future steps depend on data existing from previous steps. Then we added page messaging to direct users to a proper page. We reviewed the way that the form validates certain data from the form submission so that data is kept safe between users. I showed how I switched from the model and fields attributes of CreateView to a form_class containing the form that does the necessary validation.
Read More