AllBooksQuotes is a Web application made with Django which works with Amazon Affiliate Program and Google Adsense. It is a community for enthusiast Book Readers to read over 50,000 quotes from over 11,000 books from different categories.
STEP 1:
/home/django/All-Book-Quotes
(Use ls command to go to the working directory)
Note: (pwd will print the full path to the working directory)
python3 manage.py createsuperuser
python3 manage.py collectstatic
python3 manage.py download_random_images 50 # replace 50 with the number of images you want
# 1. pass argument all for all images in the database
python3 manage.py generate_quote_images all
# 2. pass books slug separated by a space
python3 manage.py generate_quote_images twilight the-thunder-games
python3 manage.py populate_db_from_json books.json
# Note: books.json is the path to the json file
python3 manage.py extract_images books.json
# Note: books.json is the path to the json file
python3 manage.py amazon_affiliate_link all
python3 manage.py amazon_affiliate_link [book_slug] [book_slug2]
Note: [book_slug] is the part of url without "-quotes"
tail /var/log/gunicorn/dev.log
nano <filepath>
(Press ctrl+x => y => Enter to save the file)
systemctl restart nginx
systemctl reload nginx
(Use both commands)
jobs -l # Locate process id
kill 1234 # pass process id here
gunicorn -c config/gunicorn/dev.py # start the server




