diff --git a/gettingstarted/settings.py b/gettingstarted/settings.py index b00430d2e..61bd1b25f 100644 --- a/gettingstarted/settings.py +++ b/gettingstarted/settings.py @@ -91,12 +91,17 @@ MAX_CONN_AGE = 600 +import dj_database_url + + + DATABASES = { "default": { "ENGINE": "django.db.backends.sqlite3", "NAME": os.path.join(BASE_DIR, "db.sqlite3") } } +DATABASES['default'] = dj_database_url.config(conn_max_age=600, ssl_require=True) if "DATABASE_URL" in os.environ: # Configure Django for DATABASE_URL environment variable. diff --git a/hello/templates/base.html b/hello/templates/base.html index 97ec07386..06de7e0d0 100644 --- a/hello/templates/base.html +++ b/hello/templates/base.html @@ -1,7 +1,7 @@ -Python Getting Started on Heroku +Python Getting Started on Heroku22 diff --git a/hello/templates/index.html b/hello/templates/index.html index 55951ccc2..a344f68f7 100644 --- a/hello/templates/index.html +++ b/hello/templates/index.html @@ -8,7 +8,7 @@ -

Getting Started with Python on Heroku

+

Getting Started with Python on Heroku22

This is a sample Python application deployed to Heroku. It's a reasonably simple app - but a good foundation for understanding how to get the most out of the Heroku platform.

Getting Started with Python Source on GitHub