Hello,
I am working on project in which I'm using django2 and MongoDB as database. 
I have used djongo driver to connect django with MongoDB. I don't have any 
experience with django or MongoDB. This is first time I have use both of 
these.
Currently I want to create Embedded documents in MongoDB. To do that I have 
Installed djangotoolbox. After creating model and writing other code when I 
run my project It is giving me this error "from django.utils.importlib 
import import_module ModuleNotFoundError: No module named 
'django.utils.importlib'". When I search for this error on google I found 
this answer 
https://stackoverflow.com/questions/32761566/django-1-9-importerror-for-import-module.
 
This answer is for older versions. 
Even I tried this answer and then I got this error "from 
django.db.models.fields.subclassing import Creator ModuleNotFoundError: No 
module named 'django.db.models.fields.subclassing'".
Currently I'm stuck in my project. How can I solve this problem? Is there 
any other alternative way to do this? How to create Embedded documents in 
MongoDB using this library?
Here are the versions of frameworks and library I used in my project.
Django==2.1
django-rest-framework-mongoengine==3.3.1
djangorestframework==3.8.2
djongo==1.2.29
mongoengine==0.15.3
pymongo==3.7.1
djangotoolbox==1.8.0

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/12742fc3-0187-497a-97a9-dd416a68288c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to