Production static and media settings, environment variables, and database setup

Photo by Joe on Unsplash

If you’re landing here before you’ve read part 1, you may want to go back and read that first! Some parts of this article won’t work or won’t make sense without the foundation given in the previous article.

Using Django 3.1.3, Python 3.7.9, and Amazon Linux 2

Photo by Brandi Redd on Unsplash

In this tutorial, we’ll be creating a simple Django Rest Framework (DRF) app and deploying it with Beanstalk to make our endpoints available on the web. We’ll do everything, from creating our virtual environment and getting the Django app running locally, to deploying the code on Beanstalk and hooking it into a Postgresql RDS database. Let’s get going!

If you’re already familiar with everything covered here, or you’re looking for help with handling production static and media files, database settings, or environment variables — check out part 2 instead!

Table of Contents

  1. Why Use Elastic Beanstalk
  2. Installing Pyenv and Pipenv
  3. Clone The Repo

Step up your regex know-how

Regular expressions. If you know how to use them, they are awesome and powerful. If not, they look like an alien language that needs to be decoded. Either way, this guide will cover the basics of regexes and how they are used to make the life of a programmer easier. We will then go over the basic & extended set and how they can be used in Python and terminal. By the end, you’ll have enough regex know-how to step up your everyday coding.

The Basics

Regular expressions are a way to search for patterns in data sets. It is not a…

Zack Petersen

Software Engineer, Outdoorsman, Indoor Plant Enthusiast

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store