talkpython / 100daysofweb-with-python-course

Demo code and resources for our 100 Days of Web in Python Course
https://training.talkpython.fm/courses/explore_100days_web/100-days-of-web-in-python
630 stars 390 forks source link

Day 41 Example Tips Page changed #57

Closed johniuro closed 3 years ago

johniuro commented 3 years ago

Following the course, the page used to grab tips and code from, https://codechalleng.es/tips, has been completely changed. Is there a new url for the old example tips so I can continue the demo? Thank you

bbelderbos commented 3 years ago

@johniuro thanks bringing this to our attention!

I updated the endpoint to https://codechalleng.es/api/tips/ and fixed the sync_tips.py script to work with it (from BeautifulSoup to parsing the requests response, much nicer!)

While there I fixed some other Django things, pinned the requirements and updated the README. I even included a Makefile to make the setup easier.

I tested the React app locally and it all works for me. Just pull https://github.com/pybites/python_tips again and go through the setup, I hope it works fine for you as well now.

Enjoy the axios experience :)

HTH Bob