On Fri, Dec 6, 2019 at 5:40 PM Tim Johnson <[email protected]> wrote:
> Despite the voluminous Heroku documentation I am unable to establish > where to initialize the DATABASE_URL that would establish credentials > for my deployed database. > > Heroku's documentation uses the following example > > DATABASE_URL=$(heroku config:get HEROKU_POSTGRESQL_TIMS_URL -a timsapp) > > But I am not clear where this initialization code should live > > would it be in the procfile? If so, what process should I use. Release? > Worker? > > OR > > Would it be in an .env file? > > Using django 2.1.5, python 3.7 > > examples welcome :) > > thanks > > -- > Tim > tj49.com > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/a02698e8-e71a-5d42-728d-4c6d012bbb84%40akwebsoft.com > . > I believe DATABASE_URL is set on Heroku itself as a configuration variable. If you provision the database in Heroku, it will be set for you. See here: https://devcenter.heroku.com/articles/heroku-postgresql#provisioning-heroku-postgres -Jorge -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CANfN%3DK9EOSQG-jmd7FJD_hpEaqGp8AbChSgnE-pMgBhued13og%40mail.gmail.com.

