mirror of
https://github.com/duplxey/django-multi-tenant.git
synced 2026-06-29 08:30:55 +00:00
Implement multi-tenancy in Django using the django-tenants & django-tenant-users package.
- Python 100%
| blog | ||
| core | ||
| tasks | ||
| tenants | ||
| .gitignore | ||
| manage.py | ||
| README.md | ||
| requirements.txt | ||
Building a Multi-tenant App with Django
Want to learn how to build this?
Check out the post.
Want to use this project?
-
Fork/Clone
-
Spin up a PostgreSQL database using Docker:
$ docker run --name sprinty-postgres -p 5432:5432 \ -e POSTGRES_USER=sprinty -e POSTGRES_PASSWORD=complexpassword123 \ -e POSTGRES_DB=sprinty -d postgres -
Populate the database:
$ python manage.py populate_db -
Your tenants should be accessible at the following URLs:
public: http://localhost:8000/api/demo1: http://demo1.localhost:8000/api/demo2: http://demo2.localhost:8000/api/
-
Tenant information including admin credentials, can be found in tenants.json file.