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

Episode 13 - Does My Site Work?

June 1, 2021 » Django on Matt Layman » [Archived Version]

On this episode, we will discuss how you can verify that your site works and continues to work. We’re digging into automated testing and how to write tests for your Django apps. Listen at djangoriffs.com or with the player below. Last Episode On the last episode, our focus was on static files. Static files are vital to your application, but they have little to do with Python code. We saw what they are and what they do.

Read More

Per-visitor Data With Sessions

May 21, 2021 » Django on Matt Layman » [Archived Version]

In the last Understand Django article, we saw what it takes to make your Django project live on the internet. Now, we’ll get back to a more narrow topic and focus on a way Django can store data for visitors to your site. This is the kind of data that doesn’t often fit well into your Django models and is called session data. From Browser To DjangoURLs Lead The WayViews On ViewsTemplates For User InterfacesUser Interaction With FormsStore Data With ModelsAdminister All The ThingsAnato…

Read More

Deploy A Site Live

March 23, 2021 » Django on Matt Layman » [Archived Version]

In the previous Understand Django article, we looked at automated testing and how writing tests to check your Django project can be very valuable, saving you time and making sure your site works for your users. Next, we’re going to look into how to share your site on the internet by understanding what it means to deploy a Django project. Deployment is the act of making your application live to your audience, and this article explains the actions you should consider to deploy effectively.

Read More

Test Your Apps

Feb. 22, 2021 » Django on Matt Layman » [Archived Version]

In the previous Understand Django article, we saw how static files like CSS, JavaScript, and images can be incorporated into your site. Now we’re going to focus on how to verify that your website works and continues to work by writing automated tests that check your pages and your code logic. From Browser To DjangoURLs Lead The WayViews On ViewsTemplates For User InterfacesUser Interaction With FormsStore Data With ModelsAdminister All The ThingsAnatomy Of An ApplicationUser Authenticatio…

Read More

Episode 12 - Success With Static Files

Feb. 15, 2021 » Django on Matt Layman » [Archived Version]

On this episode, our focus will be on static files. Static files are vital to your application, but they have little to do with Python code. We’ll see what they are and what they do. Listen at djangoriffs.com or with the player below. Last Episode On the last episode, we looked at Django middleware. We discussed why middleware is useful and how you can work with it. What Are Static Files?

Read More

How To Use Htmx In Django

Feb. 6, 2021 » Django on Matt Layman » [Archived Version]

This article shows you how to use htmx in Django. What is htmx? According to the htmx website: htmx allows you to access AJAX, CSS Transitions, WebSockets and Server Sent Events directly in HTML, using attributes, so you can build modern user interfaces with the simplicity and power of hypertext. The example that we’ll craft is an ability to delete a task from a list of tasks without reloading the whole page.

Read More

UX Polish - Building SaaS #90

Feb. 4, 2021 » Django on Matt Layman » [Archived Version]

In this episode, I worked on more customer requests to refine the user interface. We added a new convenient shortcut button and included additional information and links on the course detail view. I’m continuing on my path to include the changes that my customer wants as she running a school year for the first time. The first change was to add a new button on the student’s view of a course.

Read More

Are Django and Flask Similar?

Jan. 30, 2021 » Django on Matt Layman » [Archived Version]

Maybe you’re new to web development in Python, and you’ve encountered the two most popular Python web frameworks, Django and Flask, and have questions about which one you should use. Are Django and Flask similar tools for building web applications? Yes, Django and Flask share many similarities and can both make great websites, but they have some different development philosophies which will attract different types of developers. What do I know about this?

Read More

Customer Feature - Building SaaS #89

Jan. 28, 2021 » Django on Matt Layman » [Archived Version]

In this episode, I show you how to take a feature idea from nothing to something. We added new UI, wrote a new view, a new form, and all the associated test code to prove that the feature works. My customer wants the ability to complete a task on any day she desires. The feature flow looks like: Click a calendar icon next to a task on a student’s course page.

Read More

Which Django Version Should I Use?

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

Django is a big and popular web framework for Python to help you build a web app. Which Django version should you use? If you’re starting a Django web app, use the latest version of Django available. Why listen to me? I’m a software developer with over 7 years of professional Django experience. I work at companies that use Django successfully at the core of their business. I’ll explain why you should use the latest.

Read More