Django and Stripe subscriptions— Part 1

Nuno Bispo
Analytics Vidhya
Published in
5 min readAug 15, 2020

--

Django logo

So you want to build a membership site or charge for your digital product/downloads and don’t know what tool to use? Use Django.

You can, of course, use Wordpress and one of the many e-commerce plugins, but many of them require payment of an annual or monthly fees. Sure they might be easier and faster but why spend when you can build your own?

Building it with Python and Django is free, except payment for the VPS hosting the site and perhaps a small fee for the payment integrator (which you would also pay going with Wordpress).

Given that, let’s learn how we can build our membership site and start selling our digital (or even physical) products.

1) Starting our Django project

I assume that you know how to install Python and Django and have already experience with both, the focus is not on a step by step tutorial for installation.

So let’s begin…

We start our project with the classic Django project start:

django-admin startproject cloudhomelab

We navigate to our home directory (were manage.py is located) and we run our project with:

python manage.py runserver

--

--

Nuno Bispo
Analytics Vidhya

➡️ Content Creator 📜 ➡️ Software Builder 🧑‍💻 ➡️ Follow me for content about 🐍 Python 📘 Django 🧠 A.I.