A simple recipe recommender :)
- Clone the Repository
- Install Python3
- Go to Project Folder and run virtual env:
virtualenv .venv,source .venv/bin/activate - Install Django in virtual env:
pip install --upgrade pip,pip install django - Install requirements:
pip install -r requirements.txt - Follow the Database Setup Instruction
- To create migrations:
python manage.py makemigrations,python manage.py migrate - To make static files load, run :
python manage.py collectstatic - To run the application:
python manage.py runserver
- Install Postgresql and setup your postgres user.
- Run application pgAdmin
- Create a Database :
fridge-2-tableunder Databases - Enter all the DB Details in the
.envfile orsettings.pyfile - If migrations give error, trying changing password in the .env file to the one that you set when you started the pgAdmin application.
- Place you csvs in
main/core/csv - Modify scripts in
main/core - Code work done in
main/core/work
- Create a DO account and make a droplet
- Install the repository as usual
- Configure nginx and gunicorn to serve
- To enable logging, uncomment the Logging code in env file and set DEBUG = True
- To use logger to log details, add this lines to the top of your file:
import logging
logger = logging.getLogger(__name__) - To use it, write
logger.debug('Add what you want to print')

