Skip to content

Commit

Permalink
Hotfix/heroku conf (#64)
Browse files Browse the repository at this point in the history
* Add tests dependencies to herkou

* Add drf-yasg2.herokuapp.com to allowed hosts

* Add validation dependencies to herkou

* Update heroku readme link
  • Loading branch information
JoelLefkowitz authored Oct 19, 2020
1 parent 16e1e0c commit 4242dee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ pip install drf-yasg2[validation]

### Usage

Checkout the [live demo!](https://drf_yasg2-demo.herokuapp.com/)
Checkout the [live demo!](https://drf-yasg2-demo.herokuapp.com/)

Add the package to INSTALLED_APPS:

Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is only used when deploying to heroku
# Heroku insists on having a root-level requirements.txt
.[heroku]
.[validation]
.[tests]
2 changes: 1 addition & 1 deletion testproj/testproj/settings/heroku.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

DEBUG = True

ALLOWED_HOSTS.append(".herokuapp.com")
ALLOWED_HOSTS.append("drf-yasg2.herokuapp.com")

SECRET_KEY = os.getenv("DJANGO_SECRET_KEY")
assert SECRET_KEY, "DJANGO_SECRET_KEY environment variable must be set"
Expand Down

0 comments on commit 4242dee

Please sign in to comment.