May 13, 2020 » Django Chat » [Archived Version]
Erin is a Django consultant whose previous employers include Wharton and Caktus Group. We discuss how to go solo, manage the business aspects, and find clients.
Read MoreMay 11, 2020 » Django on Matt Layman » [Archived Version]
On this episode, we will learn about HTML forms and Django’s form system to use when collecting input from users. Listen at djangoriffs.com. Last Episode On the previous episode, we looked at templates, the primary tool that Django provides to build user interfaces in your Django app. Web Forms 101 HTML can describe the type of data that you may want your users to send to your site. Collecting this data is done with a handful of tags.
Read MoreMay 9, 2020 » django on roschegel » [Archived Version]
Tests need to be fast. If tests are slow, our development process is affected and we end up spending a considerable amount of time waiting for the results. I will go through some of the techniques that I’ve applied to speed up tests on Django applications. Tips for speeding up test execution 1. Run your tests in parallel If you are running your tests on multi-core hardware, running your tests in parallel is probably the best optimization you can make if you aren’t doing it yet. If you are using…
Read MoreMay 7, 2020 » Django on Matt Layman » [Archived Version]
In this episode, we’re remodeling! I changed the model relationship between GradeLevel and Course from a ForeignKey (1 to many) to a ManyToManyField. We talked through the change and started fixing all the tests that broke. After explaining the change that I wanted to make and why I want to make it, I explained how a foreign key and many to many relationship at the database level. Once we had the conceptual foundation in place, I started with the documentation.
Read MoreMay 6, 2020 » Django Chat » [Archived Version]
Markus is a longtime Django contributor. We discuss the work of the Security and Ops Teams, his day job at Crate.io, async, and the future of Django.
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 » 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 More