I am not sure but try to import mongoengine.
-- I am also trying many ways to get this combo integration.
On Monday, February 4, 2019 at 11:29:16 PM UTC+5:30, B.navya spoorthi Sweety wrote:
On Monday, February 4, 2019 at 11:29:16 PM UTC+5:30, B.navya spoorthi Sweety wrote:
hi alli am trying django with mongoi added following lines in settings.pymongoengine.connect(db="tools",host="localhost")i am seeing errorFile "<frozen importlib._bootstrap_external>", line 697, in exec_module File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removedFile "C:\c_burra_mongo_1\mysite\mysite\settings.py", line 124, in <module> mongoengine.connect(NameError: name 'mongoengine' is not definedi am aware that i need to change something hereDATABASES = {'default': {'ENGINE': 'django.db.backends.sqlite3','NAME': os.path.join(BASE_DIR, 'db.sqlite3'),}}but not sure what to change
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+unsubscribe@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/7012c024-c5c9-40fa-83e1-0dbc6b6cd9f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment