Re: Newbie looking for some help with Postgres <> Django connection

2020-11-09 Thread Marc Johnson
Hi David, Thanks again for the input. I havent quite figured it out yet but I appreciate the help! Best, Marc On Thu, Nov 5, 2020 at 8:02 AM David Nugent wrote: > > > On 5 Nov 2020, at 04:11, Marc Johnson wrote: > > Hi David, > > Thanks again for the feedback. When I remove the 'ENGINE' varia

Re: Newbie looking for some help with Postgres <> Django connection

2020-11-05 Thread David Nugent
On 5 Nov 2020, at 04:11, Marc Johnson mailto:marcjohnson...@gmail.com>> wrote: Hi David, Thanks again for the feedback. When I remove the 'ENGINE' variable I get the error saying settings.DATABASES is improperly configured, as shown in the snapshot attached below. But when I add the ENGINE

Re: Newbie looking for some help with Postgres <> Django connection

2020-11-03 Thread David Nugent
On 4 Nov 2020, at 03:45, Marc Johnson mailto:marcjohnson...@gmail.com>> wrote: ... 1. Since this app is dockerized, I have my existing env vars in my docker-compose-prod.yml file. Is that where I should list DATABASE_URL? Like: db: image: postgres:11 volumes: - postgres_data:/var/l

Re: Newbie looking for some help with Postgres <> Django connection

2020-11-03 Thread Marc Johnson
Hi David, Thanks for the feedback! I'm checking out dj_database_url and have a few follow up questions I was hoping you (or someone) could help me with. 1. Since this app is dockerized, I have my existing env vars in my docker-compose-prod.yml file. Is that where I should list DATABASE_URL? Like

Re: Newbie looking for some help with Postgres <> Django connection

2020-10-31 Thread David Nugent
It's been a while since I used heroku, but iirc it just uses a formatted pg url. Install the module dj-database-url and use this in settings instead of the default DATABASES layout, something like: DATABASES = { 'default': dj_database_url.config(os.environ['DATABASE_URL'], conn_max_age=1800