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!

How to Create and Serve Zipfiles from Django

Posted by Bob on Wed 08 May 2019 in Django • Tagged with Django, zipfile, snippets, archive, response, request, admin, DB, sqlite3, migrations, virtualenv • 6 min read

We added support to our platfom for bulk downloading of all your code submissions. This feature required creating and serving up zipfiles through Django. In this article I show you how to do it creating a simple Django app collecting code snippets through the admin interface, and serving them up in a zipfile via a download endpoint. Let's dive straight in ...


Continue reading

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

A Step by Step Guide to Implementing and Deploying Two-Phase Registration in Django

Posted by Bob on Sat 05 August 2017 in Django • Tagged with Django, 100DaysOfDjango, Django-registration, Gmail, Postgres, SQLite, registration, tutorial, guide, virtualenv, learning • 11 min read

Two-phase registration, consisting of initial signup followed by a confirmation/activation email is a common piece for any web app. In this article I will guide you through setting this up in Django using the Django-registration plugin and Gmail for messaging. Then I show you how to deploy the app to Heroku.


Continue reading

Deploying a Django App to PythonAnywhere

Posted by Bob on Sun 23 July 2017 in Django • Tagged with Django, 100DaysOfDjango, PythonAnywhere, Security, cloud, deployment • 3 min read

After Julian's great article on deploying a Flask app to Heroku, let's look at how we can deploy a Django app to PythonAnywhere (PA).


Continue reading

First Steps Learning Django: PyPlanet Article Sharer App

Posted by Bob on Mon 17 July 2017 in Django • Tagged with Django, 100DaysOfDjango, Planet Python, Twitter, tutorials, resources • 4 min read

In this post I share my first steps exploring Django. I created PyPlanet Article Sharer Django App to make it easier for us to share new Planet Python feed articles. It loads in new articles and generates tweet links. It lets us mark each entry as Shared or Skipped. I am sure this will facilitate our Twitter activity and News Digests. This is our first project of our 100 days of Django and our very first Django app overall!


Continue reading