DEV Community

Vicente G. Reyes
Vicente G. Reyes

Posted on • Originally published at learnetto.com

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

Table of Contents

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

I. Introduction

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.

Homepage

Homepage

About page

About page

Blog detail page

Blog detail page

Portfolio page

Portfolio page

Contact page

Contact page

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.

Top comments (0)