Releasing a reusable Django app

Django documentation has a tutorial about how to package your reusable apps so that they can be installed later with pip in any virtual environment:

https://docs.djangoproject.com/en/1.8/intro/reusable-apps/

However, there is an even better way to package and release a reusable Django app using the Cookiecutter tool, which creates templates for different coding projects such as new Django CMS website, Flask website, or jQuery plugin. One of the available project templates is cookiecutter-djangopackage. In this recipe, you will learn how to use it to distribute the reusable likes app.

Getting ready

Install Cookiecutter in your virtual environment:

(myproject_env)$ pip install cookiecutter

How to do it...

To release

Get Django: Web Development with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.