earn the White PyBites Ninja earn the Yellow PyBites Ninja earn the Orange PyBites Ninja right arrow earn more PyBites Ninja belts and certificates
The best way to learn to code in Python is to actually use the language.

Our platform offers effective Test Driven Learning which will be key to your progress.


Join thousands of Pythonistas and start coding!


Join us on our PyBites Platform
Click here to code!

Building a Python Tips API with Django REST Framework and Deploying it to Digital Ocean

Posted by Bob on Tue 05 March 2019 in Django • Tagged with Django, APIs, Django REST Framework, tips, Digital Ocean, Django Commands, Postman, Nginx, postgres, Gunicorn, BeautifulSoup, requests, curl, SSH, Linux, deployment • 15 min read

In this article I will show you how to build a simple API for our growing collection of Python tips. First we make a simple Django app, defining the model. Next we use Django REST Framework to make an API supporting common CRUD operations. Then we will test it out using curl, Postman and Django REST's browser front-end. Lastly we deploy the API to Digital Ocean so we can start using it via our Slack with a Slash Command, which I will cover in the next article. Sounds exciting? You bet it is! Let's jump straight in!


Continue reading

How to Test Your Django App with Selenium and pytest

Posted by Bob on Thu 22 November 2018 in Testing • Tagged with django, pytest, selenium, platform, fixtures, dateutil • 8 min read

In this article I will show you how to test a Django app with pytest and Selenium. We will test our CodeChalleng.es platform comparing the logged out homepage vs the logged in dashboard. We will navigate the DOM matching elements and more. Overall you should learn enough Selenium and pytest to start testing a web page including a login. Sounds exciting? Let's dive straight in!


Continue reading

PyBites Twitter Digest - Issue 36, 2018

Posted by PyBites on Sun 18 November 2018 in Digest • Tagged with twitter, news, pybites, Github, TensorFlow, Anaconda, Google, courses, frameworks, Django, Flask, PSF, pycon, dictionaries, JSON, OpenCV, YOLO, packaging, CLI • 3 min read

Every weekend we share a curated list of 15 cool things (mostly Python) that we found / tweeted throughout the week.


Continue reading

Code Challenge 52 - Create your own Pomodoro Timer - Review

Posted by PyBites on Mon 01 October 2018 in Challenges • Tagged with Pomodoro, time, datetime, code challenge, challenges, wxPython, Django, tkinter, argparse • 2 min read

In this article we review last week's Create your own Pomodoro Timer code challenge.


Continue reading

PyBites Twitter Digest - Issue 27, 2018

Posted by PyBites on Sun 19 August 2018 in Digest • Tagged with twitter, news, pybites, PSF, configfy, decorators, Mockaroo, Sketch, data, Machine Learning, OpenCV, Netflix, Jupyter, deep learning, TensorFlow, Keras, PyPI, security, UX, data visualisation, ripgrep, Django, Wordpress, Bootstrap, gtts, pdb • 2 min read

Every weekend we share a curated list of 15 cool things (mostly Python) that we found / tweeted throughout the week.


Continue reading

PyBites Twitter Digest - Issue 19, 2018

Posted by PyBites on Mon 11 June 2018 in Digest • Tagged with twitter, news, pybites, Django, Swift, iOS, Github, TensorFlow, Flask, Regex, facial recognition, executable, pyinstaller, MacOS • 2 min read

Every weekend we share a curated list of 15 cool things (mostly Python) that we found / tweeted throughout the week.


Continue reading

PyBites Twitter Digest - Issue 18, 2018

Posted by PyBites on Sun 03 June 2018 in Digest • Tagged with twitter, news, pybites, coding, Python 3.7, OpenCV, regex, GitHub, data visualisation, Pandas, pycon, python tip, itertools, Django, Mapbox, data science • 3 min read

Every weekend we share a curated list of 15 cool things (mostly Python) that we found / tweeted throughout the week.


Continue reading

Twitter Digest 2018 Week 14

Posted by PyBites on Sun 15 April 2018 in Digest • Tagged with twitter, news, pybites, Pandas, MyPy, PyPI, lists, book, PSF, deep learning, machine learning, TensorFlow, PyCon, Django, matplotlib, Flask, Docker, PyQt • 2 min read

Every weekend we share a curated list of 15 cool things (mostly Python) that we found / tweeted throughout the week.


Continue reading

Twitter Digest 2018 Week 07

Posted by PyBites on Sun 11 February 2018 in Digest • Tagged with twitter, news, pybites, code challenges, Sci-Kit Learn, Keras, Flask, TensorFlow, deep learning, PyCon, Django, augmented reality, data science, Jupyter • 2 min read

Every weekend we share a curated list of 15 cool things (mostly Python) that we found / tweeted throughout the week.


Continue reading

Twitter Digest 2018 Week 06

Posted by PyBites on Sun 04 February 2018 in Digest • Tagged with twitter, news, pybites, learning, SfePy, moviepy, pathlib, piwheels, raspberry pi, Jupyter, Django, Docker, Elasticsearch • 2 min read

Every weekend we share a curated list of 15 cool things (mostly Python) that we found / tweeted throughout the week.


Continue reading