-
download and run ngrok
ngrok http 8000
-
copy forwarding https url to dialogflow console-> Fulfillment -> webhook -> URL, save changes
-
copy and paste in /book_site/settings.py
ALLOWED_HOSTS = [ 'your forwarding url (e.g fd24df8a5595.ngrok.io)', '127.0.0.1', 'localhost' ]
docker-compose up --build -d
docker-compose exec web python manage.py migrate
- download and unzip into project root folder
https://drive.google.com/file/d/1pZooiSj1wrT0-Gxp94lzdmrdK7V8tN8k/view?usp=sharing - requests library is installed
pip install requests
- ensure server is started and run import script
python import_books.py
http://localhost:8000
http://localhost:8000/api/
http://localhost:8000/admin/
docker-compose exec web python manage.py createsuperuser
docker-compose exec db psql -U django -d django
docker-compose down