-
Notifications
You must be signed in to change notification settings - Fork 55
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
And run 'architect --module...' give me Import Error (Django) #57
Comments
Probably you firstly should try to import User model not directly but from get_user_model() from django.contrib.auth |
Ok, i add |
Try to avoid direct User import. Import from |
But if cannot import with this two ways, how i import my model User? |
from django.contrib.auth import get_user_model
User = get_user_model() |
The problem is the |
I add the partition configuration in my class:
I export the path:
$ export DJANGO_SETTINGS_MODULE=prisvo.settings
But when i execute
architect partition --module article.models
My site works with no problem, my model user work perfectly, my migrations are done without errors. Only here is giving me an error. And if i comment where the import is imported is give another import error with the same model but in another code.
The text was updated successfully, but these errors were encountered: