Skip to content

You have TENANT_APPS that are not in INSTALLED_APPS but their are.. #561

@fhbash

Description

@fhbash

I try to make migrate, but get these error:

SystemCheckError: System check identified some issues:

ERRORS:
?: (tenant_schemas.E002) You have TENANT_APPS that are not in INSTALLED_APPS
	HINT: ['account.apps.AccountConfig', 'core.apps.CoreConfig', 'cadastro.apps.CadastroConfig', 'financeiro.apps.FinanceiroConfig']
?: (tenant_schemas.E003) You have SHARED_APPS that are not in INSTALLED_APPS
	HINT: ['publico.apps.PublicoConfig']

Process finished with exit code 1

But I put all on INSTALLED_APPS:

SHARED_APPS = (
    'tenant_schemas',  # mandatory, should always be before any django app
    'publico.apps.PublicoConfig',  # you must list the app where your tenant model resides in
    'django.contrib.contenttypes',

    # everything below here is optional
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'django.contrib.sites',
)

TENANT_APPS = (
    'django.contrib.contenttypes',

    # your tenant-specific apps
    # 3rd apps
    'widget_tweaks',
    'bootstrap3',
    'crispy_forms',
    'password_reset',
    'rest_framework',
    'forms_builder.forms',

    # ERPbr apps
    'account.apps.AccountConfig',
    # 'api.apps.ApiConfig',
    'core.apps.CoreConfig',
    'cadastro.apps.CadastroConfig',
    'financeiro.apps.FinanceiroConfig',
)

INSTALLED_APPS = [
    'tenant_schemas',  # mandatory, should always be before any django app
    'publico.apps.PublicoConfig',  # you must list the app where your tenant model resides in
    'django.contrib.contenttypes',

    # everything below here is optional
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'django.contrib.sites',

    'widget_tweaks',
    'bootstrap3',
    'crispy_forms',
    'password_reset',
    'rest_framework',
    'forms_builder.forms',

    # ERPbr apps
    'account.apps.AccountConfig',
    # 'api.apps.ApiConfig',
    'core.apps.CoreConfig',
    'cadastro.apps.CadastroConfig',
    'financeiro.apps.FinanceiroConfig',

]

What's I doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions