You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got an Error at Python3.5.2 Django 1.11
ImportError: No module named 'registry'
locate init.py
def register(model_cls, config_cls=None):
from registry import Registry
Registry.register(model_cls, config_cls)
def unregister(model_cls):
from registry import Registry
Registry.unregister(model_cls)
I solve this issue using relative imput:
.....
from .registry import .....
......
The text was updated successfully, but these errors were encountered:
I got an Error at Python3.5.2 Django 1.11
ImportError: No module named 'registry'
locate init.py
def register(model_cls, config_cls=None):
from registry import Registry
Registry.register(model_cls, config_cls)
def unregister(model_cls):
from registry import Registry
Registry.unregister(model_cls)
I solve this issue using relative imput:
.....
from .registry import .....
......
The text was updated successfully, but these errors were encountered: