mirror of
https://github.com/carrotquest/django-clickhouse.git
synced 2024-11-22 00:56:37 +03:00
Fix module import on auto sync
This commit is contained in:
parent
b94195c1f1
commit
59f0efae15
|
@ -28,7 +28,10 @@ def clickhouse_auto_sync():
|
|||
"""
|
||||
# Import all model modules
|
||||
for app in settings.INSTALLED_APPS:
|
||||
import_submodules("%s.%s" % (app, config.MODELS_MODULE))
|
||||
try:
|
||||
import_submodules("%s.%s" % (app, config.MODELS_MODULE))
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
# Start
|
||||
for cls in get_subclasses(ClickHouseModel, recursive=True):
|
||||
|
|
Loading…
Reference in New Issue
Block a user