Skip to content
This repository was archived by the owner on May 20, 2021. It is now read-only.

Commit 1a4cf7e

Browse files
committed
Update WORKSHOP.md
1 parent e46a909 commit 1a4cf7e

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

WORKSHOP.md

+4-6
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This project utilizes the [Getting Started with Python on Heroku](https://github
1010
1111
## Prerequisites
1212

13-
1. Signup for a Free [Heroku](https://signup.heroku.com/) Account
13+
1. Signup for [Heroku](https://signup.heroku.com/)
1414
2. Install the [Heroku CLI](https://devcenter.heroku.com/articles/heroku-cli#download-and-install)
1515
3. Clone this Repo
1616

@@ -61,13 +61,13 @@ For twelve factor deployment and deployment on Heroku, a few changes are needed
6161

6262
Scroll to the `MIDDLEWARE` list and place the following line at index 1, or 2nd in the list:
6363

64-
`'whitenoise.middleware.WhiteNoiseMiddleware',`
64+
`"whitenoise.middleware.WhiteNoiseMiddleware",`
6565

6666
The order that middleware is loaded is important, which is why we need to add this change to our local.py file. More on that in a bit.
6767

68-
For local-prod parity, let's enable WhiteNoise's [caching and compression](http://whitenoise.evans.io/en/stable/django.html#add-compression-and-caching-support) locally by adding the following line to the bottom of your `local.py`:
68+
For local-prod parity, let's enable WhiteNoise's [caching and compression](http://whitenoise.evans.io/en/stable/django.html#add-compression-and-caching-support) locally by adding the following line to the bottom of your `base.py`:
6969

70-
`STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'`
70+
`STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage"`
7171

7272
## Step 4: heroku.py
7373

@@ -89,8 +89,6 @@ env = environ.Env(
8989
# set casting, default value
9090
DEBUG=(bool, False)
9191
)
92-
# # reading .env file
93-
# environ.Env.read_env()
9492
9593
# False if not in os.environ
9694
DEBUG = env('DEBUG')

0 commit comments

Comments
 (0)