Skip to content

Added postgres notes #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jan 14, 2020
Merged

Added postgres notes #15

merged 4 commits into from
Jan 14, 2020

Conversation

lpatmo
Copy link
Member

@lpatmo lpatmo commented Sep 24, 2019

See: #12

@BethanyG
Copy link
Member

With the new settings file using django-environ, django will expect an env variable (either in the environment or in a .env file) called DATABASE_URL. It should take the form of this:

postgres://{user}:{password}@{hostname}:{port}/{database-name}

as an example:
postgres://silly_username:a_password@localhost:5342/your_db_name_here

env.db() will then parse this into a DATABASE dict automatically for Djangos use in settings.

@brylie
Copy link
Member

brylie commented Jan 11, 2020

If there are no other improvements, let's go ahead and merge this PR :-)

@lpatmo
Copy link
Member Author

lpatmo commented Jan 14, 2020

Oof... I know these instructions I wrote up quickly aren't the best and @bengineerdavis wanted to work on something clearer, but they are better than the status quo at the moment. So will merge so it's in history, and we can update these in a future PR.

@lpatmo lpatmo merged commit 530ce53 into master Jan 14, 2020
@billglover billglover deleted the issue-12 branch February 11, 2020 21:53
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.

3 participants