django-planet

Feed: Django on Matt Layman

Recent content in Django on Matt Layman

Blog Matt Layman
RSS 2.0 Feed Django on Matt Layman
web https://www.mattlayman.com/tags/django/
Last Update11.22.2024
Posts336

Sync or Async? Unpacking the Mysteries of Django Signals

March 15, 2023 » Django on Matt Layman » [Archived Version]

Django is a popular web framework for Python developers, known for its robustness, flexibility, and security. One of the features that make Django powerful is its signal system. Signals allow developers to trigger certain actions when specific events occur, such as when a model is saved or deleted. However, there is often confusion about whether Django signals are asynchronous or not. In this article, we will explore this question and discuss the tradeoffs associated with using Django signals.

Read More

Time Travel with django-simple-history

March 14, 2023 » Django on Matt Layman » [Archived Version]

If you’re interested in Django development, you might have come across the django-simple-history package. It’s a great tool that can help you keep track of changes made to your models over time. In this article, we’ll take a closer look at django-simple-history and how it can benefit your projects. What is django-simple-history? django-simple-history is a third-party Django package that provides version control for your models. It allows you to keep track of changes made to yo…

Read More

Learn Django or Ruby on Rails?

March 11, 2023 » Django on Matt Layman » [Archived Version]

I got a question from a patron on Patreon. The question is a common one, so I thought I’d share it along with my response. Was there a reason why you picked the Django for your web development? Did you consider RoR? Does it matter which stack I use at the end of the day? My primary reason for getting into Django was twofold. First, I’ve been working with Python for a long time and have a lot of comfort with the language.

Read More

Inventory Management / Custom 404 page / Go gqlgen - Building SaaS #154

March 2, 2023 » Django on Matt Layman » [Archived Version]

In this episode, I did another Exercism problem in Python which focused on working with dictionaries. Once the exercise was complete, we worked on the homeschool app and created a custom 404 page so that Django would render something beyond a plain page. After working on Django, I did something totally different and worked on some Go code and used gqlgen to create a GraphQL service with generated code produced via a GraphQL schema.

Read More

Inventory Management / Custom 404 page / Go gqlgen - Building SaaS #154

March 2, 2023 » Django on Matt Layman » [Archived Version]

In this episode, I did another Exercism problem in Python which focused on working with dictionaries. Once the exercise was complete, we worked on the homeschool app and created a custom 404 page so that Django would render something beyond a plain page. After working on Django, I did something totally different and worked on some Go code and used gqlgen to create a GraphQL service with generated code produced via a GraphQL schema.

Read More

Backend Development 101 with Django REST Framework

Feb. 14, 2023 » Django on Matt Layman » [Archived Version]

If you’re familiar with Python, you’ve most certainly heard of Django, but may not know what it is used for and why people like it so much. We will first run through a ‘backend development 101’ crash-course, then talk about Django’s take on backend development and what Django REST Framework provides on top of it. Finally we will add a feature to an example Django app and do some live coding.

Read More

Backend Development 101 with Django REST Framework

Feb. 14, 2023 » Django on Matt Layman » [Archived Version]

If you’re familiar with Python, you’ve most certainly heard of Django, but may not know what it is used for and why people like it so much. We will first run through a ‘backend development 101’ crash-course, then talk about Django’s take on backend development and what Django REST Framework provides on top of it. Finally we will add a feature to an example Django app and do some live coding.

Read More

Neovim setup / Tisbury Treasure Hunt / django-stubs - Building SaaS #153

Dec. 29, 2022 » Django on Matt Layman » [Archived Version]

In this episode, I updated and supercharged my editor by switching to Neovim. After that, we did an Exercism excercise that looked at Python tuples. Then I started on a new issues for my SaaS, but pivoted to adding django-stubs to improve the type hinting in the code.

Read More

Neovim setup / Tisbury Treasure Hunt / django-stubs - Building SaaS #153

Dec. 29, 2022 » Django on Matt Layman » [Archived Version]

In this episode, I updated and supercharged my editor by switching to Neovim. After that, we did an Exercism excercise that looked at Python tuples. Then I started on a new issues for my SaaS, but pivoted to adding django-stubs to improve the type hinting in the code.

Read More

Colossal Coaster and Stripe CSP - Building SaaS with Python and Django #152

Dec. 8, 2022 » Django on Matt Layman » [Archived Version]

In this episode, we did an Exercism excercise that looked at Python list methods. Then we dug into Stripe and got to the bottom of some warnings reported by Firefox about potential Content Security Policy issues. Ultimately, we discovered some interesting additional Firefox cookie protection that were not found in Chrome.

Read More