Open balazaigo opened 2 years ago
Attaching Screenshot of the exception.
I have been having this same exact error. I was first getting it on my index.html page. Then I fixed it by adding:
if not request.user.is_authenticated:
return render(request, 'index.html')
to the beginning of my index_page view, but now I get it on every other page of my application. all of my views have "try" and "excepts" so I don't get what the issue is.
I have had this error for months now, tried to post on StackOverflow and everyone just downvoted my question instead of actually trying to help.
@rlivermorejr - If anyone points us out to update the x version of this package to y version or else if they provide us a solution it will be helpful for us. If i ran that query in django shell then it is working fine and it is providing me the actual results, but if i place that in search_fields it is not working. I am not sure what we can do for this one.
Yeah, I am not sure either, I tried to fix the other pages in my app with that piece of code and it just wouldn't fix anything but the homepage, so it really doesn't make sense to me.
I ended up giving up on trying to figure this one out. I took all the djongo stuff out of my application and just deployed to heroku because I need to get my app on my resume for job applications. I hope someone can help with this though because I cannot upload images and stuff without using MongoDB.
No Exception Message Supplied Exception occuring on the Djongo
pymongo==3.12.1 djongo==1.3.6 sqlparse==0.2.4
My viewset ( I am using DRF)
My models
URL called: http://localhost:8000/chapters/?search=cddd
Traceback
DatabaseError at /chapters/
Request Method: | GET -- | -- http://localhost:8000/chapters/?search=ppp 4.0.1 DatabaseError /var/www/html/contentmicroservice/experenv/lib/python3.8/site-packages/djongo/cursor.py, line 59, in execute /var/www/html/contentmicroservice/experenv/bin/python 3.8.10 ['/var/www/html/contentmicroservice', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/var/www/html/contentmicroservice/experenv/lib/python3.8/site-packages'] Tue, 15 Mar 2022 09:46:32 +0000