Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 903 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 903 Bytes

Django-tenants

I created an application using Django Tenants(docs) for multi-tenancy with PostgreSQL Schemas, ensuring data isolation. Tenants can be created using a RESTful API implemented with Django Rest Framework.

Getting started

Requirements

You need to install Docker and Docker-Compose.

Build

         docker-compose up -d 

Migrate databases

         docker-compose exec web python manage.py migrate

Createsuperuser

         docker-compose exec web python manage.py createsuperuser

Create_tenant

         docker-compose exec web python manage.py create_tenant