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.20.2024
Posts336

Episode 1 - Get To Know Django

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

Welcome to the show notes for the first episode of Django Riffs! Django Riffs is a podcast for learning web application development in Python using the Django web framework. Listen at djangoriffs.com. Who Is This For? This podcast is for absolute Django beginners. No prior knowledge of Django or web development is expected. Experienced users may learn something new or get a good refresher from topics they might have missed in the documentation.

Read More

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

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

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

From Browser To Django

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

Maybe you have heard about Django and that it can help you build websites. You might be new to Python, new to web development, or new to programming. This new series, Understand Django, will show you what Django is all about. Throughout this series, I will reveal how Django is a powerful tool that can unlock the potential of anyone interested in making applications on the internet. Django is used by companies like Instagram, Eventbrite, Disqus, and Udemy, and is also a great tool for individual…

Read More

Make A Custom User Model - Building SaaS #40

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

In this episode, we started a users app and hooked up the custom user model feature of Django to unlock the full extensibility of that model in the future. The stream was cut short this week because of some crashing issues in the OBS streaming software. The goal of the episode was to add django-allauth so that users can sign into the service with an email and password instead of the default username and password combination.

Read More

django-environ and django-debug-toolbar - Building SaaS #39

Dec. 18, 2019 » Django on Matt Layman » [Archived Version]

In this episode, we set up a couple of tools that will be at the base of development. The first tool was django-environ to control Django settings from environment variables. The second tool was the django-debug-toolbar to help with debugging pages in future work. We started the stream with an upgrade to Django 3.0.1 because of a security release that was announced today. For a new project, I don’t recommend upgrading packages all the time, but security releases are my exception to that r…

Read More

A Failed SaaS Postmortem

Dec. 18, 2019 » Django on Matt Layman » [Archived Version]

My Software as a Service failed. After three years of running College Conductor, I’m shutting it down. The service failed for a host of reasons, and this article details what I learned from the whole experience. This is a chance for me to reflect, and give you some ideas of what pitfalls can happen if you’re planning to build a SaaS. The vision Before getting to the lessons, let’s look at my vision for the service so you have some context of what I was building.

Read More

New Project, Who Dis? - Building SaaS #38

Dec. 6, 2019 » Django on Matt Layman » [Archived Version]

In this episode, we started a brand new project! I had some internet troubles so this “stream” is actually a local recording from my computer. We created a new Django project from scratch and set up Heroku to handle deployments. In spite of the streaming trouble, we were able to get a bunch done. We started the project from scratch so we made a repository on GitHub with some .gitignore settings tailored for Python projects.

Read More