hi all
-- i am trying django with mongo
i added following lines in settings.py
mongoengine.connect(
db="tools",
host="localhost"
)
i am seeing error
File "<frozen importlib._bootstrap_external>", line 697, in exec_module
File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
File "C:\c_burra_mongo_1\mysite\mysite\settings.py", line 124, in <module>
mongoengine.connect(
NameError: name 'mongoengine' is not defined
i am aware that i need to change something here
DATABASES = {
'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/39ae38f8-c165-4c1d-af0c-4ad167065e40%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment