Nikhil1912 / Athenaeum

MIT License
0 stars 1 forks source link

GIT-46 Removed the secret key from repo (use .env) #47

Closed abidnazirisami closed 2 years ago

abidnazirisami commented 2 years ago

Create a new file Athenaeum\backend\.env and add the secret key in this file like this:

SECRET_KEY = '<secret key>'

hreiche commented 2 years ago

When I try to run the backend on this branch according to the protocol we follow for the main branch (i.e., following the steps written in the readme), I get a "ModuleNotFoundError: No module named 'decouple'." However, I don't get that issue when I run the main branch. I looked into it, and I think that this link may be of some use; maybe we need to update the requirements.txt file, or alternatively update the directions on the readme to run it however you are on your machine. Hope that provides some feedback.

abidnazirisami commented 2 years ago

@hreiche The updated requirement.txt with the required modules was pushed along with the other changes under this branch. All we need to do to run the backend is run "pip install -r requirements.txt" before running the server to ensure all the requirements have been installed.

hreiche commented 2 years ago

Ok, I finally got it to work :) I'll update the readme to include really precise directions to run it for people like me