What's new in Django community blogs?

Django vs FastAPI: Which is the Best Python Web Framework?

Dec. 22, 2023 » The PyCharm Blog » [Archived Version]

Introduction If you’re new to web development and have only recently heard of “Frameworks” as a method of speeding up your application development, then you’re in the right place. Today, we’ll explore the two most popular web frameworks in the Python ecosystem currently, namely Django and FastAPI. In this blog post, we’ll help you understand […]

Read More

Django News - Understand Django - Dec 22nd 2023

Dec. 22, 2023 » Django News » [Archived Version]

News Python Developers Survey 2023 If you haven't already done so, we encourage you to complete the Python Developers Survey 2023 to share your thoughts. alchemer.com Tailwind CSS v3.4: Dynamic viewport units, :has() support, balanced headlines, subgrid, and more Tailwind CSS v3.4 was just released. This announcement highlights new features like dynamic viewport height units, parent-child styling with the :has() pseudo-class and * variant,…

Read More

Don't use Python's property

Dec. 22, 2023 » James Bennett » [Archived Version]

This is part of a series of posts I’m doing as a sort of Python/Django Advent calendar, offering a small tip or piece of information each day from the first Sunday of Advent through Christmas Eve. See the first post for an introduction. Attributing the problem Suppose you’re writing Java and you write a class with an attribute : public class MyClass { public int value; } And then later on you realize that value … Read full entry

Read More

Use Django's system checks

Dec. 21, 2023 » James Bennett » [Archived Version]

This is part of a series of posts I’m doing as a sort of Python/Django Advent calendar, offering a small tip or piece of information each day from the first Sunday of Advent through Christmas Eve. See the first post for an introduction. Check it out While you can do very minimal Django setups, more typical use cases tend to involve a mix of applications — your own, some third-party, and some from django.contrib — … Read full entry

Read More

Sign Up - Building SaaS with Python and Django #178

Dec. 21, 2023 » Django on Matt Layman » [Archived Version]

In this episode, we did some work on the sign up template. In the process, we added some base template styling, talked about branding, and considered the other elements that are required before we can turn on sign up for others. I also cover waffle as a feature flag tool.

Read More

Sign Up - Building SaaS #178

Dec. 21, 2023 » Django on Matt Layman » [Archived Version]

In this episode, we did some work on the sign up template. In the process, we added some base template styling, talked about branding, and considered the other elements that are required before we can turn on sign up for others. I also cover waffle as a feature flag tool.

Read More

Show Python deprecation warnings

Dec. 19, 2023 » James Bennett » [Archived Version]

This is part of a series of posts I’m doing as a sort of Python/Django Advent calendar, offering a small tip or piece of information each day from the first Sunday of Advent through Christmas Eve. See the first post for an introduction. Let this be a warning Python provides the ability to issue a warning as a step below raising an exception; warnings are issued by calling the warnings.warn() function, which at minimum … Read full entry

Read More

Running async tests in Python

Dec. 19, 2023 » James Bennett » [Archived Version]

This is part of a series of posts I’m doing as a sort of Python/Django Advent calendar, offering a small tip or piece of information each day from the first Sunday of Advent through Christmas Eve. See the first post for an introduction. A-sync-ing feeling Async Python can be useful in the right situation, but one of the tricky things about it is that it requires a bit more effort to run than normal synchronous … Read full entry

Read More

Don't use class methods on Django models

Dec. 17, 2023 » James Bennett » [Archived Version]

This is part of a series of posts I’m doing as a sort of Python/Django Advent calendar, offering a small tip or piece of information each day from the first Sunday of Advent through Christmas Eve. See the first post for an introduction. Being methodical about Python Python classes support three basic types of methods: Instance methods, which are what you get by default when writing a def statement inside a class body. These are … Read full entry

Read More

Say what you mean in a regex

Dec. 17, 2023 » James Bennett » [Archived Version]

This is part of a series of posts I’m doing as a sort of Python/Django Advent calendar, offering a small tip or piece of information each day from the first Sunday of Advent through Christmas Eve. See the first post for an introduction. An URL-y warning Suppose you’re writing a blog in Django, and you get to the point where you’re setting up the URLs for the entries. Django has two ways to write … Read full entry

Read More