Nov. 19, 2020 » Valentino Gagliardi - Django RSS Feed » [Archived Version]
A cheat-sheet of common testing recipes for Django applications.
Read MoreNov. 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 MoreNov. 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 MoreNov. 12, 2020 » Django on Matt Layman » [Archived Version]
In this episode, I worked on a method of adding static content to a site that didn’t involve the staticfiles directory, a separate domain, or a reverse proxy like Nginx. We had to get clever with Heroku buildpacks and how to configure WhiteNoise. I want to put a blog on my side project for content marketing purposes. I want the blog to be statically generated and have content come from Markdown (just like these show notes that you’re currently reading).
Read MoreNov. 11, 2020 » Django Chat » [Archived Version]
Carl is a Software Engineer at Instagram and a Django Core developer. We discuss his contributions to Django and how Django and Python are used at Instagram today.
Read MoreNov. 6, 2020 » Valentino Gagliardi - Django RSS Feed » [Archived Version]
Too lazy to install Django debug toolbar or nplusone? Uncover N+1 queries in Django with a unit test!
Read MoreNov. 5, 2020 » Django on Matt Layman » [Archived Version]
In this episode, I created a template for one of my new forms on the new social media app that I’m building. We talked about context data, template styling, and special considerations for forms in templates. I had an empty template for the invite sending form to begin. I filled in a first attempt at the template with a header and displaying form errors. While building that, I added some context information that was needed for the display.
Read MoreNov. 4, 2020 » Django on Matt Layman » [Archived Version]
In the previous Understand Django article, we learned about the structure of a Django application and how apps are the core components of a Django project. In this article, we’re going to dig into Django’s built-in user authentication system. We’ll see how Django makes your life easier by giving you tools to help your web application interact with the users of your site. From Browser To DjangoURLs Lead The WayViews On ViewsTemplates For User InterfacesUser Interaction With For…
Read MoreNov. 3, 2020 » Valentino Gagliardi - Django RSS Feed » [Archived Version]
Learn how to use UUID as URLs in your Django projects.
Read More