ImportError: cannot import name 'PasswordResetSerializer' (circular import)
See original GitHub issueBecause of this commit: https://github.com/Tivix/django-rest-auth/commit/dd6db3563f9205e4a42d171f25948cc110e13b8b I cannot import and extend any serializer.
In my project, i extend PasswordResetSerializer
to overrideget_email_options
.
Now, a circular import is created because of that commit.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:4
- Comments:5 (1 by maintainers)
Top Results From Across the Web
ImportError: cannot import name '...' from partially initialized ...
I cannot have a file named retrying.py that is using the retrying package. ... error with the message "most likely due to a...
Read more >"Circular Import Error" when separating Serializers into ...
ImportError : cannot import name 'MatchSerializer' from partially initialized module 'app.serializers.match' (most likely due to a circular ...
Read more >How to Fix : “ImportError: Cannot import name X” in Python?
You can solve the “ ImportError : Cannot import name X” Error by resolving the circular dependencies. You can do that either by...
Read more >cannot import name '...' from partially initialized module ...
Django : ImportError : cannot import name '. ... (most likely due to a circular import ) [ Beautify Your Computer : http......
Read more >Django, ImportError: cannot import name Celery ... - YouTube
Django : Django, ImportError : cannot import name Celery, possible circular import ?
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed in latest version.
I ha ve the same issue. I have a custom
USER_DETAILS_SERIALIZER
and I extendPasswordResetSerializer
. This results in a circular import.