django-planet

Blog: Matt Layman

web https://www.mattlayman.com/tags/django/
Author

Customer Docs - Building SaaS #85

Dec. 31, 2020 » Django on Matt Layman » [Archived Version]

In this episode, I integrated customer documentation into the app. I showed how to build Sphinx documentation into a Django project, then created a help view to link to the docs. Finally, I added documentation building to the deployment process. I previously created a Sphinx documentation project to hold docs for my app, but I had not hooked the docs into my project yet. Before hooking it in, I explained how Sphinx works and how I customized the documentation to fit with my project.

Read More

Refactoring Enrollment - Building SaaS #84

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

In this episode, I decided to redesign a portion of the application flow. I wasn’t pleased with how users would enroll students for their grades so I refactored the school year page into a flow that worked better. Note: My internet connection was not good during this stream. Thankfully, the audio is fine and reading code is very possible because the background doesn’t need to change much. My apologies for the low quality.

Read More

Empty States - Building SaaS #83

Dec. 17, 2020 » Django on Matt Layman » [Archived Version]

In this episode, I returned to the onboarding flow and start to polish some of the extra pages. We filled the pages with special copy and a call to action to each page to help customers be successful. I started with the pages that displays the school years. We added a chunk of template from the onboarding process that asks the user to create a school year. I modified the template chunk to make it fit in the context of the page.

Read More

Middleware Do You Go?

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

In the previous Understand Django article, we covered the built-in auth system. That article gave you a chance to see the User model, ways to login users with Django’s authentication tools, and the features that make the authorization controls work. In that topic, middleware came up as an integral component. Now we’re going to learn more about middleware and its function within a Django project. From Browser To DjangoURLs Lead The WayViews On ViewsTemplates For User InterfacesUser I…

Read More

Customer Feedback - Building SaaS #82

Dec. 10, 2020 » Django on Matt Layman » [Archived Version]

In this episode, I worked on feedback from my primary customer. We fixed a couple of issues that she reported, then moved on to more of the onboarding flow. Before getting to the code, we chatted about ways to learn to code. I linked to a popular book, Automate the Boring Stuff with Python, and some good web tutorials for learning Django. The first bit of customer feedback that I worked on was to add a back link from a course details to get a user back to the grade level that holds the course.

Read More

How To Set Up Tailwind CSS In Django On Heroku

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

How can you set up Tailwind CSS for your Django app on Heroku? In this article, we’ll see how I did exactly that recently. I have a side project that uses Tailwind CSS. To get started quickly, I used the version from a Content Delivery Network (CDN) as Tailwind describes in the documentation. This worked fine initially while I got my project started, but the CDN version is huge (around 3MB).

Read More

Finishing Onboarding - Building SaaS #81

Dec. 3, 2020 » Django on Matt Layman » [Archived Version]

In this episode, I completed the last form that completes the last step on my Django app’s onboarding process. We built up the view, wrote the tests, and worked through the templates changes. I started with a discussion of what the onboarding flow does and what was left. I needed to make a form that creates a task for a course. For the first chunk of code, we added some tests to cover all the scenarios that are important for the view.

Read More

Episode 10 - User Auth

Nov. 24, 2020 » Django on Matt Layman » [Archived Version]

On this episode, we’re going to look at working with users in a Django project. We’ll see Django’s tools for identifying users and checking what those users are permitted to do on your website. Listen at djangoriffs.com. Last Episode On the last episode, I explained the structure of Django application. We also talked why this structure is significant and how Django apps benefit the Django ecosystem as a tool for sharing code.

Read More

Reordering Models - Building SaaS #80

Nov. 19, 2020 » Django on Matt Layman » [Archived Version]

In this episode, we looked at an UpdateView for the GradeLevel model in the homeschool application. Along the way, I had to display some UI elements on the grade to give users the ability to adjust the ordering of courses within their grade level. We started by adding the icon link that I wanted to use to give users access to the edit page. Once the link was in place, I created the URL and copied an existing view as a starting point for the UpdateView.

Read More

Make A Hugo Static Blog Inside A Django App

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

I have a side project and I’d like to do some content marketing to potential customers to show how my product is useful. To do this, I need a blog for my project. Maybe you need a blog for your project too. Have you thought about where your blog will exist on the internet? For me, I considered two choices: Use a subdomain like blog.mysite.com. Use a route style like mysite.

Read More