Skip to content


Folders and files

Last commit message
Last commit date

Latest commit



22 Commits

Repository files navigation

Deploy Machine Learning Models with Django

This is a source code from the tutorial available at

This web service makes Machine Learning models available with REST API. It is different from most of the tutorials available on the internet:

  • it keeps information about many ML models in the web service. There can be several ML models available at the same endpoint with different versions. What is more, there can be many endpoint addresses defined.
  • it stores information about requests sent to the ML models, this can be used later for model testing and audit.
  • it has tests for ML code and server code,
  • it can run A/B tests between different versions of ML models.

The code structure

In the research directory there are:

  • code for training machine learning models on Adult-Income dataset link
  • code for simulating A/B tests link

In the backend directory there is Django application.

In the docker directory there are dockerfiles for running the service in the container.

Django + React Tutorial 📚

I'm working on complete tutorial how to build SaaS (software as a Service) application with Django and React from scratch. The SaaS service will be for server uptime monitoring - it is available at The tutorial is available at SaaSitive website.