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

ImportError: No module named 'registry' #50

Open
antonchasnyk opened this issue Aug 31, 2017 · 0 comments
Open

ImportError: No module named 'registry' #50

antonchasnyk opened this issue Aug 31, 2017 · 0 comments

Comments

@antonchasnyk
Copy link

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 .....
......

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

No branches or pull requests

1 participant