-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Deployment needs a persistent database #158
Conversation
oh... serves me right for not checking other PRs first 😊 |
|
||
$ heroku addons:add heroku -postgresql --app djangogirlsblog | ||
|
||
> In addition to creating a database for us, Heroku will also provide our application information on how to connect to the database. This information will be read and used by `dj_database_url.config()` in our `mysite/settings.py file`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this wrong? Heroku won't create a db for us, as you stated below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
running this command will create it on Heroku... might have stated that differently, I agree
changed, thanks 😉
I personally like this extra info compared to #146. 👍 |
thanks 👍 |
+1 |
Deployment needs a persistent database
Thanks for the contribution @goranche! <3 |
glad to help 😉 |
Added instructions for PostgreSQL database creation in the deploy chapter (Heroku no longer creates a default database when creating an application)