django-planet

What's new in Django community blogs?

Consistent Onboarding - Building SaaS #52

April 16, 2020 » Django on Matt Layman » [Archived Version]

In this episode, we glued together some of the onboarding steps. I added data validation so that future steps depend on data existing from previous steps. Then we added page messaging to direct users to a proper page. We reviewed the way that the form validates certain data from the form submission so that data is kept safe between users. I showed how I switched from the model and fields attributes of CreateView to a form_class containing the form that does the necessary validation.

Read More

JustDjango - Matthew Freire

April 15, 2020 » Django Chat » [Archived Version]

JustDjango is a popular YouTube channel and website dedicated to Django learning resources. We discuss how Matthew learned Django, building the website itself, payments, mentors, and more.

Read More

How to handle multiple sites (virtual hosts) in Django

April 10, 2020 » Valentino Gagliardi - Django RSS Feed » [Archived Version]

It's common to have a single Django project serving requests for multiple domains. Learn how to route each request to the right app.

Read More

Onboarding Forms - Building SaaS #51

April 9, 2020 » Django on Matt Layman » [Archived Version]

In this episode, we added the first form to collect data in the onboarding flow. We used a CreateView and defined all the fields that are needed in the HTML form. I started by filling in the HTML form structure of the page. Once the dummy version was in place, we changed from a TemplateView to a CreateView and began fixing each configuration error that the new view type reported as missing like missing a model field declaration.

Read More

Translations - Andrew Knight

April 8, 2020 » Django Chat » [Archived Version]

Django has a powerful built-in translations framework that we discuss with Andrew Knight. Topics include internationalization vs localization, common gotchas, Django’s internal translations team, and more.

Read More

Episode 4 - Building User Interfaces

April 8, 2020 » Django on Matt Layman » [Archived Version]

On this episode, we look at templates, the primary tool that Django provides to build user interfaces in your Django app. Listen at djangoriffs.com. Last Episode On the previous episode, we talked about views and how views handle requests to create HTTP responses for users. Set Up Templates are static files that Django will fill in with data. In order to use those files, we must instruct Django on where to find them.

Read More

How to create a Django project and a Django application

April 4, 2020 » Valentino Gagliardi - Django RSS Feed » [Archived Version]

Learn how to create a Django project and a Django application in this quick-start tutorial.

Read More

Django JSON logging

April 4, 2020 » Thomas Loiret - Random thoughts » [Archived Version]

Use python-json-logger package to output JSON log with Django

Read More

Onboarding Continuity - Building SaaS #50

April 2, 2020 » Django on Matt Layman » [Archived Version]

In this episode, we stepped from the welcome onboarding page to the first interactive page in the flow. I extracted the common banner for each of the templates and customized it for each of the steps in the process. The first thing we did was create a button on the starting page. The button connects the welcome page to the second step in the flow where the app will ask for information about the user’s school year.

Read More

Templates For User Interfaces

April 2, 2020 » Django on Matt Layman » [Archived Version]

In the previous Understand Django article, we looked at the fundamentals of using views in Django. This article will focus on templates. Templates are your primary tool in a Django project for generating a user interface. With templates, you’ll be able to build the pages that users will see when they visit your web app. Let’s see how templates hook into views and what features Django provides with its template system.

Read More