DMASCoreDeclan / PRD-PP4-Blog

Blogstar for PP4
0 stars 1 forks source link

Developer User Story: Install Django #1

Closed DMASCoreDeclan closed 9 months ago

DMASCoreDeclan commented 9 months ago

As a Developer I can use Django so that develop my PP4 project

CI Gitpod Steps CI Heroku Steps

Acceptance criteria 1 -[x] Django works on Gitpod

Acceptance criteria 2 -[x] Django works on Heroku

DMASCoreDeclan commented 9 months ago

Instructions: pip3 install Django~=4.2.1 pip3 freeze --local > requirements.txt

Result: Successfully installed Django-4.2.9 asgiref-3.7.2 sqlparse-0.4.4 image

Commit for Django Commit for Heroku

Multiple screenshots and notes were not saved for some reason, all that data is now lost, resuming at Deploy on Herok part

DMASCoreDeclan commented 9 months ago

blogstar did not deploy, I changed DEBUG to True and redeployed, Procfile was incorrect, it had: web: gunicorn my_project.wsgi instead of: web: gunicorn blogstar.wsgi

The app now deploys on Heroku: Image

DMASCoreDeclan commented 9 months ago

As Django 4.2 requires Postgress 12 or above and postgress 12 or above is no longer available from ElephantSQL. With tutor assistance I downgraded Django from 4.2 to 3.2