Alan's Django Notes
Welcome!
I'm Alan and this site is my collection of Django notes. It's currently a collection of boilerplate code and commands designed to be copied and pasted to accomplish specific tasks. You can learn more about the site in the Site Details section below. Or, dig right in with the boilerplates:
The First Three Boilerplates
These are the first three "Getting Started" things I do to set up a new site/project. All the boilerplates in the next section assume these have been run in order.
Boilerplate Tasks
These boilerplates are designed to be run as stand-alone examples (after going throuh the first three above to get the basics in place). The goal for each one is that it contain 100% of the code and commands you need to use to accomplish the specific task.
-
Boilerplate: Toggle A Django Checkbox With A Generic JavaScript Function Without Refreshing The Page
-
Boilderplate: Make A Many-To-Many Model Connection In Django
Site Details
A few things to note about the site:
-
Working-in-public and publishing my notes is one of the most effective ways for me to learn. I mostly publish on my main site, but I expect I'll be spending enough time with Django that these notes warrent a site of their own.
-
The site currently consists of boilerplate code and commands. There's not much explination with them beyond the code itself.
-
I cut everything down as much as I can to focus on the specific task. That means no CSS unless the task is focused on CSS.
-
The first three boilerplates are designed to be run togther. They set up a basic site/project that the other boilerplates are run on top of.
-
The rest of the boilerplates are designed to be used independetly of each other to show how to do a specific task.
-
The goal of each boilerplate is to contain 100% of the code and commands you need to run in order to accomplish the task.
-
I'm still new to Django. Please let me know, if you know of more django native ways to do anythihg you see here. You can reach me on mastodon