Sample Application for Django Multitenant
Installation
- Install the dependencies
pip install -r tutorial/requirements.txt - Start the database
docker-compose --project-name django-multitenant up -d || { docker-compose logs && false ; } - Execute migrations
./migrate.py migrate - Start the application
./migrate.py runserver - Open the rest app UI
http://localhost:8000/ - Login with the turkiye_user and usa_user consecutively and see the projects and accounts are totally isolated. You can check the data in migrations