Creating a blog with Cookiecutter-Django & deploying it to Heroku: Introduction

Python Developer | Audio Editor | Technical Writer | OSS Contributor | Tag Moderator @ @ThePracticalDEV | Valorant TonyPoppins #881488
Search for a command to run...

Python Developer | Audio Editor | Technical Writer | OSS Contributor | Tag Moderator @ @ThePracticalDEV | Valorant TonyPoppins #881488
No comments yet. Be the first to comment.
Learn to jumpstart a production-ready blog using the Cookiecutter-Django framework and how to deploy it to Heroku
Since this isn't a tutorial focused on the Cookiecutter-Django framework, I won't be getting too much into it. I'll only include how I fell in love with the framework when I found out what features it had that I struggled with implementing on the usu...
A no-fluff deployment runbook for getting a Cookiecutter Django project live on DigitalOcean using Docker and Traefik. Covers the full path from droplet provisioning to a working production deployment

If youāre switching between networks with different trust levelsāhome, cafĆ©, coworking spaceāyou probably donāt want your VPN behavior to be static. This guide walks through a clean, system-level way

Why this script exists If you've ever watched your free disk space quietly shrink over a few weeks of active development, you know the feeling: yesterday you had plenty of headroom, today your IDE is

A message from a colleague dropped into my inbox one morning: Hi Ice, now that we pushed the changes sa site, we need to scour the site for mentions of Level 1, Level 2, Level 1/2 and change them acc

Backing up your WordPress site is one of the most important maintenance tasks you can do as a site owner. While plugins like UpdraftPlus or Jetpack make this easy, knowing how to do it manually via SS

Photo by Luca Bravo on Unsplash
I. An introduction on the tech stack we're using and how we'd style our blog
II. Creating the blog project
III. Starting a Django App
IV. Model Architecture Planning
V. Creating the models.py, views.py, urls.py, admin.py & the superuser
VI. Testing our app using Unittests
VII. Creating the data and fine-tuning the templates
VIII. Showing Data on the frontend
IX. Deployment to Heroku
In this tutorial, I'll walk you through developing a blog using the Cookiecutter-Django framework, storing the projects' static assets in an AWS S3 bucket, and deploying the blog to Heroku. Our blog would have a blog model that we'll call Post, a categories model, a contact form, and a model to showcase our past works or a portfolio page.
We'll then be using Bootswatch's Darkly theme, built on top of the Bootstrap CSS framework for our blog's styles. Feel free to choose a different theme if you prefer to.





Since we now know how the site would look, let's start creating our models and understand how Django's Model-View-Template architecture works.