semvec/pypi-packages huggingface dataset:
django-saas-base 1.0.0a1
The foundation for building a SaaS product with Django
License: BSD-3-Clause
Requires Python: >=3.12

# Django SaaS (Base)

The foundation for building a SaaS product with Django.

## Install

```
pip install django-saas-base
```

Then add it into your Django project `settings.py`:

```python
INSTALLED_APPS = [
    # ...
    'saas_base',
    'saas_base.identity',
    'saas_base.tenancy',
]

AUTHENTICATION_BACKENDS = [
    'saas_base.auth.backends.ModelBackend',
]

MIDDLEWARE = [
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'saas_base.middleware.HeaderTenantIdMiddleware',
    'saas_base.middleware.TenantMiddleware',
]
```