2023-06-01

Goal

Figure out how to re-route all traffic to use my SSL Certificate (https instead of http) in the DIMMiN App.

Pomodoro

25 minutes work 5 minutes rest

Notes

Looks like I'm going to have to re-route everything to https in the code in Django. Then after fixing up the code I'll need to push it back to GitHub and re-deploy the app on Heroku.

First I re-downloaded a version of the app on my local computer git clone https://github.com/williamrhayes/dimmin.git

Then I needed to install virtualenv to run a virtual environment for the app to make sure all the dependencies were there. I needed to allow Powershell to access the environment by running the Powershell command Set-ExecutionPolicy Unrestricted -Scope Process

then I created my Virtual Environment python -m venv dimmin_env

and activated it in the command line using the command .\dimmin_env\bin\activate

Then I tried installing requirements from the requirements.txt file. pip install -r requirements.txt

I was having issues when trying to install the packages from the requirements.txt file. Specifically I was having trouble installing the psycopg2 library. I think it was because I needed to install PostgreSQL. I installed PosgreSQL and restarted my computer. I manually added C:\Program Files\PostgreSQL\15\bin to my system's environment variables path to try and get the pg_config installation requirement satisfied. This worked but then another error popped up about how there was some kind of

I installed Microsoft C++ Build Tools for Visual Studio based on this post.

Results

  • Installed a local version of the DIMMiN App
  • Created a Virtual Environment to install app dependencies
  • Downloaded PostgreSQL
  • Fixed the pg_config missing error but ran into another one when trying to install psycopg2.

Previous Note 2023-05-30 Next Note 2023-06-19