Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System checks of INSTALLED_APPS #545

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pmontepagano
Copy link

@pmontepagano pmontepagano commented May 15, 2018

Fixes #443
The system check best_practice gets a list of INSTALLED_APPS from the app_configs parameter but then it compares it with settings.SHARED_APPS and settings.TENANT_APPS. I changed it so that it also uses settings.INSTALLED_APPS instead of using the app_configs parameter.

We had to change this to be able to use Sentry. Sentry's Django AppConfig's name is "raven.contrib.django", but in INSTALLED_APPS (according to the docs) you write "raven.contrib.django.raven_compat".

There's probably a problem in the way the Raven app is configured, since its AppConfig.name should be the full Python path to the app. But I also think that this fix in django-tenant-schemas is in order.

What do you think?

…nd settings.TENANT_APPS, it doesn't make sense to compare with app_configs. We had to change this to be able to use Sentry. Sentry's Django AppConfig's name is "raven.contrib.django", but in INSTALLED_APPS you write "raven.contrib.django.raven_compat".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Entry in INSTALLED_APPS but not in SHARED_APPS or TENANT_APPS can't migrate
1 participant