web | https://www.mattlayman.com/tags/django/ |
---|---|
Author |
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 MoreJan. 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 MoreJan. 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 MoreJan. 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 MoreJan. 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 MoreJan. 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 MoreDec. 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 MoreDec. 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 MoreDec. 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 MoreOct. 30, 2019 » Django on Matt Layman » [Archived Version]
In this episode, we turned our attention to handling settings and configuration. We discussed different techniques for handling settings, looked at available tools, and started integrating one of the tools into the project. The initial discussion in the stream focused on different ways of doing settings. I talked about what I view as a difference between configuration (mostly static stuff) and settings (dynamic parts of the app). I also discussed where to get settings from.
Read More