Skip to content

Conversation

@edmorley
Copy link
Member

@edmorley edmorley commented May 19, 2023

  • The app no longer provisions a Postgres addon by default (since the Postgres adapter dependency in requirements.txt is commented out, which is what the Python buildpack uses to determine whether to auto-provision), so that it's possible to try the main part of the guide without incurring any additional charges beyond the eco dyno plan.
  • The Postgres DB addon has been removed from app.json too, which prevents it from being auto-provisioned for Review Apps too.
  • Help comments has been added to the db view function, to try and help prevent confusion due to errors on Heroku from the DB not being auto-provisioned.
  • The Postgres adapter has been switched from psycopg2 to psycopg, which counter-intuitively is newer (psycopg is the v3 implementation of the adapter). The binary version of the package is now also used when not in production, to speed up local installation and reduce the chance of running into library/header issues.
  • The new Django DB connection health check feature has been enabled.
  • The unnecessary HerokuDiscoverRunner custom test runner and databaseTEST options have been removed.
  • An example release process entry has been added (commented out) to Procfile, which runs the Django DB migrations using the Heroku Release Phase feature.

The Python Getting Started guide on Heroku Dev Center will need to be updated at the same time as this is merged.

GUS-W-13152716.

@edmorley edmorley self-assigned this May 19, 2023
@edmorley edmorley marked this pull request as draft May 19, 2023 16:41
@edmorley edmorley force-pushed the edmorley/stop-auto-provisioning-db branch 2 times, most recently from 80cca30 to 5c5457a Compare May 19, 2023 17:09
@heroku heroku bot temporarily deployed to getting-star-edmorley-s-egbhwk May 19, 2023 17:10 Inactive
@edmorley edmorley marked this pull request as ready for review May 19, 2023 17:13
* The app no longer provisions a Postgres addon by default (since the Postgres
   adapter dependency in `requirements.txt` is commented out, which is what
   the Python buildpack uses to determine whether to auto-provision), so that it's
   possible to try the main part of the guide without incurring any additional
  charges beyond the eco dyno plan.
* The Postgres DB addon has been removed from `app.json` too, which prevents
   it from being auto-provisioned for Review Apps too.
* Help comments has been added to the `db` view function, to try and help prevent
   confusion due to errors on Heroku from the DB not being auto-provisioned.
* The Postgres adapter has been switched from `psycopg2` to `psycopg`, which
   counter-intuitively is newer (`psycopg` is the v3 implementation of the adapter).
   The binary version of the package is now also used when not in production, to speed
   up local installation and reduce the chance of running into library/header issues.
* The new Django DB connection health check feature has been enabled.
* The unnecessary `HerokuDiscoverRunner` custom test runner and database`TEST`
   options have been removed.
* An example `release` process entry has been added (commented out) to `Procfile`,
   which runs the Django DB migrations using the Heroku Release Phase feature.
   
GUS-W-13152716.
@edmorley edmorley force-pushed the edmorley/stop-auto-provisioning-db branch from 5c5457a to 44dec2d Compare May 21, 2023 21:26
@heroku heroku bot temporarily deployed to getting-star-edmorley-s-wpb6wg May 21, 2023 21:27 Inactive
@edmorley edmorley merged commit c99a168 into main May 21, 2023
@edmorley edmorley deleted the edmorley/stop-auto-provisioning-db branch May 21, 2023 21:27
@edmorley
Copy link
Member Author

@edmorley edmorley linked an issue Dec 7, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Release phase should be used to run manage.py migrate

1 participant