1đź‘Ť
You can’t just say where you’re importing from, but not what you’re importing, they both have to be specified.
Have you tried from WebtoonServer.models import <Class Name>
??
I think this is most likely related to your setup, the above code should definitely work, and has worked on proper Django setups.
I suggest having a read here:
http://python-notes.curiousefficiency.org/en/latest/python_concepts/import_traps.html
Describes some issues that may arise with wrong structure. I see your “manage.py” is in WebtoonServer.
0đź‘Ť
if for example you have Class1 in app1.modles
and Class2 in app2.models
the error throws when your try to import Class1 into app2.models
and mistakenly try to import Class2 into app1.models
👤Amin Mir
- Django Restful: Nested Serializers
- Run value through function
- Django: Trying to make for zip work with Python Jinja
- Newbie – understanding Django's class-based views dynamic filtering
- AJAX update list of object
Source:stackexchange.com