Closed DMASCoreDeclan closed 9 months ago
ElephantSQL before migration:
ElephantSQL after migration:
The Postgressql Issue on ElephantSQL has been circumvented by an inter fix with CI. CI no have their own Postgresql 12 version using: PostgreSQL from Code Institute
Migrate DB from ElephantSQL to CI facility
Created new DB using PostgreSQL from Code Institute
Changed env.py from "os.environ["DATABASE_URL"] = 'postgres://ojzg . . . ." to "os.environ["DATABASE_URL"] = 'postgres://ugefic . . . . "
On Heroku, changed DATABASE_URL to the new setting.
added blog/fixtures/posts.json and loaded CI data using: python3 manage.py loaddata posts
All the posts were loaded, but as expected, this new DB has no other Users and no Comments, so the site works but all the Comment and Users in the previous DB are gone.
As a Developer I can securely connect to a DB so that I can store dynamic data
CI Steps
Acceptance criteria 1 ElephantSQL can display the VIEWS I create in Django