Getting Started with the Django Stock Market App
-
Set up an environment variable for the SECRET_KEY and set its name to the following: "DjangoStockMarketAppSecretKey"
-
Get an API key from Finnhub (https://finnhub.io/)
-
Set up an environment variable for Finnhub's API key and set its name to the following: "DjangoStockMarketAppFinnhubAPIKEY"
-
In your terminal, install django widget tweaks with the following command: pip install django-widget-tweaks
-
Go to the Recommendations_Chart.js file and set the 'APIKey' constant to your own API key.
-
Include a .env file at the root folder of the project and include: DATABASE_NAME=stockmarketapp DATABASE_USER=postgres DATABASE_PASSWORD=postgres DATABASE_HOST=localhost DATABASE_PORT=5432
DjangoStockMarketAppFinnhubAPIKEY= DjangoStockMarketAppSecretKey=