django-planet

What's new in Django community blogs?

Use Tailwind On A Template - Building SaaS #43

Jan. 23, 2020 » Django on Matt Layman » [Archived Version]

In this episode, we worked on the template styles of a tabular view. We also made some context data adjustments to include header rows and column highlighting. I started by showing the template that I already created. It was rough. Before changing anything, I took the time to explain the modeling in use for this project and the context passed to the view. The models mostly form a tree in the a hierarchy.

Read More

Security Releases

Jan. 22, 2020 » Django Chat » [Archived Version]

The Django security team recently rushed out a fix in two days time, start to finish. We discuss the normal security cadence and why staying on the latest Django release is so important.

Read More

Add Styles To Templates - Building SaaS #42

Jan. 22, 2020 » Django on Matt Layman » [Archived Version]

In this episode, I added a CSS framework, Tailwind CSS. After working through some issues with the log out feature, we started to style the base template of the site. To stay true to my “make the minimum possible thing that will work,” I added Tailwind CSS from a CDN, content delivery network. <link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet"> I described how Tailwind’s utility-first approach makes designing sites a breeze because of …

Read More

URLs Lead The Way

Jan. 22, 2020 » Django on Matt Layman » [Archived Version]

In the last article in the Understand Django series, we saw how a user’s browser request goes from their browser to Django’s “front door.” Now it’s time to look at how Django processes those requests. An HTTP request coming from a browser includes a URL describing which resource Django should produce. Since URLs can come in many forms, we must instruct Django on the kinds of URLs that our web application can handle.

Read More

Having some fun with Python

Jan. 20, 2020 » James Bennett » [Archived Version]

The other day on a Slack I hang out in, someone posted an amusing line of Python code: port = "{port}:{port}".format(port=port) If it’s not clear after the inevitable Swedish-chef-muppet impression has run through your mind, this string-formatting operation will replace the contents of port with a string containing two copies of whatever was in port, separated by a colon. So if port was "foo", now it will … Read full entry

Read More

Having some fun with Python

Jan. 20, 2020 » James Bennett » [Archived Version]

The other day on a Slack I hang out in, someone posted an amusing line of Python code: port = "{port}:{port}".format(port=port) If it’s not clear after the inevitable Swedish-chef-muppet impression has run through your mind, this string-formatting operation will replace the contents of port with a string containing two copies of whatever was in port, separated by a colon. So if port was "foo", now it will … Read full entry

Read More

Django's Async Future - Tom Christie

Jan. 15, 2020 » Django Chat » [Archived Version]

Tom is the creator of Django REST Framework, HTTPX, and a whole suite of new async Python web stack packages.

Read More

Asynchronous tasks in Django with Django Q

Jan. 15, 2020 » Valentino Gagliardi - Django RSS Feed » [Archived Version]

Learn how to use Django Q for offloading asynchronous tasks in your Django applications.

Read More

User Accounts With django-allauth - Building SaaS #41

Jan. 15, 2020 » Django on Matt Layman » [Archived Version]

In this episode, we added django-allauth to create accounts that default to email instead of using usernames. We added the package, configured some templates, and created tests. We continued to look at Will Vincent’s django-allauth post on creating user accounts with email and passwords. django-allauth let’s us swap out username and email so that users won’t need to create a username, which is the behavior that I want for this service.

Read More

Authentication - José Padilla

Jan. 8, 2020 » Django Chat » [Archived Version]

José has made major contributions to the Django ecosystem, especially around Django REST Framework and authentication. He is now an engineer at Auth0.

Read More