bernardopires / django-tenant-schemas

Tenant support for Django using PostgreSQL schemas.
https://django-tenant-schemas.readthedocs.org/en/latest/
MIT License
1.45k stars 425 forks source link

ArgumentError #660

Closed oiacrasec closed 3 years ago

oiacrasec commented 3 years ago

When i execute the code: migrate_schemas --shared

Exception: argparse.ArgumentError: argument --skip-checks: conflicting option string: --skip-checks

Requirements:

Django==3.1.1
django-cors-headers==3.5.0
django-filter==2.4.0
django-tenant-schemas==1.10.0
djangorestframework==3.12.1
djangorestframework-simplejwt==4.4.0

Settings:

TENANT_APP = [
    'tenant_schemas',  # mandatory
    'base_app'  # app where my tenant model resides in
]

TENANT_REQUIRED = [
    'django.contrib.contenttypes'
]

# Apps synced in public
SHARED_APPS = TENANT_APP + TENANT_REQUIRED + [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',

    # thirdparty apps
    'rest_framework',
    'django_filters',
    'corsheaders'
]

MY_APPS = []

# Apps synced only in tenant schemas
TENANT_APPS = TENANT_REQUIRED + MY_APPS

INSTALLED_APPS = SHARED_APPS + MY_APPS

Is there something i fogot to configure?

oiacrasec commented 3 years ago

Works on django 3.0.9