Closed akama closed 7 years ago
I'm having the same issue with Django 1.10.3
From django doc, app_configs
could be None:
The check function must accept an app_configs argument; this argument is the list of applications that should be inspected. If None, the check must be run on all installed apps in the project. The **kwargs argument is required for future expansion.
https://docs.djangoproject.com/en/1.10/topics/checks/#writing-your-own-checks
I am having the same issue, Django 1.10.4 and django-tenant-schemas 1.6.6
I had to monkey patch the Django check framework to be able to ignore this issue. You can use this as a temporary workaround.
# Patching django check due to https://github.com/bernardopires/django-tenant-schemas/issues/414
def patch_check_framework():
from django.core.checks import registry
def get_checks(self, include_deployment_checks=False):
checks = [x for x in self.registered_checks if x.__module__ != 'tenant_schemas.apps']
if include_deployment_checks:
checks.extend(self.deployment_checks)
return checks
registry.CheckRegistry.get_checks = get_checks
patch_check_framework()```
No pull requests yet, feel free to fix the problem and add the test.
If you want to try d48f6f8 please let me know if it fixes the issue. I only have a phone at my disposal presently, unable to test and had to creat the branch vis the web UI.
@goodtune I still did not tried your fix but it looks good and the right behavior. I will let you know as soon as I try it and thanks for your effort.
Merged d091d2e and tagged as v1.6.7 - still not pushing to PyPI.
I'm using Django==1.9.11 & version 1.6.5 or 1.6.6 of django-tenant-schemas. I've just upgraded from django 1.7 and 1.5.2 of django-tenant-schemas if that clarifies issues. If I open a shell using ./manage.py shell then I get the following list of applications.
Here is the exception that I get when starting the server.