What's new in Django community blogs?

Python at Microsoft - Nina Zakharenko

May 20, 2020 » Django Chat » [Archived Version]

Nina is a Cloud Developer Advocate at Microsoft, Twitch Streamer, Pythoniasta, PyCon 2019 Keynoter, long-time DjangoCon speaker, and now teacher at FrontendMasters. We discuss learning Python & Django mid-career, VSCode, Azure, and more.

Read More

Simplified Django Tests With Pytest and Pytest FactoryBoy

May 17, 2020 » django on roschegel » [Archived Version]

I’m always trying to find ways to make tests easier to read and extend. I hate working through a really hard feature and having to spend a big amount of time writing tests. Lately, I’ve been bothered by the amount of boilerplate on my test code. So, I decided to do some research and look for alternatives. When testing Django applications, I use a combination of Pytest fixtures and FactoryBoy to write tests that need database records. Pytest Fixtures allow you to abstract the initialization of…

Read More

Preventing SQL Injection in Django

May 15, 2020 » django on Jacob Kaplan-Moss » [Archived Version]

SQL Injection (SQLi) is one of the most dangerous classes of web vulnerabilities. Thankfully, it’s becoming increasingly rare — thanks mostly to increasing use of database abstraction layers like Django’s ORM — but where it occurs it can be devastating. This article will help you understand and prevent SQLi vulnerabilities in your Django apps.

Read More

Roll Your Own Tech Job - Erin Mullaney

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 More

Episode 5 - How To Use Forms

May 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 More

Making your Django tests faster

May 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 More

Django Security - Markus Holtermann

May 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 More

How to Move a Django Model to Another App

May 5, 2020 » Haki Benita » [Archived Version]

In my latest article for RealPython I cover some exotic migration operations, many of the built-in migration CLI commands and demonstrate important migrations concepts such as reversible migrations, migration plans and introspection.

Read More

User Interaction With Forms

May 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 ModelsAdminister All The Th…

Read More

Using webpack with Django: it's not easy as you think

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 More