May 5, 2020 » James Bennett » [Archived Version]
On April 20th, 2020, a release manager named Benjamin Peterson smashed the “publish” button on Python 2.7.18. The Python 2 release series reached the end of its upstream support from the Python core team at the start of the year. I don’t know for certain, but I assumed the timing of the actual final package was meant to occur during PyCon (which, until a global pandemic struck, was scheduled for mid-April), possibly so there … Read full entry
Read MoreMay 5, 2020 » James Bennett » [Archived Version]
On April 20th, 2020, a release manager named Benjamin Peterson smashed the “publish” button on Python 2.7.18. The Python 2 release series reached the end of its upstream support from the Python core team at the start of the year. I don’t know for certain, but I assumed the timing of the actual final package was meant to occur during PyCon (which, until a global pandemic struck, was scheduled for mid-April), possibly so there … Read full entry
Read MoreMay 5, 2020 » Django on Matt Layman » [Archived Version]
In the previous Understand Django article, we saw how Django templates work to produce a user interface. That’s fine if you only need to display a user interface, but what do you do if you need your site to interact with users? You use Django’s form system! In this article, we’ll focus on how to work with web forms using the Django form system. From Browser To DjangoURLs Lead The WayViews On ViewsTemplates For User InterfacesUser Interaction With FormsStore Data With ModelsAdm…
Read MoreMay 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 More