flask-mongoengine Questions
2
Solved
I'm modelling a MongoDB database in MongoEngine for a web project. I want to store the data in a slightly unusual way to be able to efficiently query it later.
Our data in MongoDB looks something ...
Antrum asked 18/11, 2014 at 10:21
1
First of I'm new to python and flask. I've searched around and tried something things to no avail. I have a model that has a DateTimeField as one of the members, let's call it "created_at". When I ...
Furgeson asked 10/10, 2014 at 20:18
2
I am having trouble saving documents to a new collection and then deleting them from the old one.
I create a new object like so:
class Test(mongo.Document):
field = mongo.StringField()
t = Test...
Gushy asked 15/7, 2015 at 5:33
2
Solved
I am running Flask with uwsgi threaded mode with processes 4 and using pymongo also flask_mongoengine and uwsgi says "MongoClient opened before fork. Create MongoClient only "
I tried connect with ...
A1 asked 2/7, 2018 at 15:5
2
Solved
I'm working with Flask/Mongoengine-MongoDB for my latest web application.
I'm familiar with Pymongo, but I'm new to object-document mappers like Mongoengine.
I have a database and collection set ...
Countermove asked 23/8, 2014 at 22:35
2
Solved
Based on this tutorial I am trying to create a form to get a few measurements. It seems that the part to display the data is working but when using the model_form command to generate the input form...
Flocculus asked 8/12, 2015 at 16:34
2
I started this Turial, Here
And get this error
**mongoengine.errors.NotRegistered:** `Comment` has not been registered in the document registry. Importing the document class automatically registe...
Mystique asked 8/4, 2015 at 16:41
1
I am using Flask, mongoengine for a project and I am trying to get basic stuff working from http://docs.mongodb.org/manual/tutorial/write-a-tumblelog-application-with-flask-mongoengine/
After impl...
Cariole asked 31/12, 2013 at 5:23
2
Solved
I am trying to make an aggregation query using flask-mongoengine, and from what I have read it does not sound like it is possible.
I have looked over several forum threads, e-mail chains and a few...
Promethean asked 25/6, 2014 at 17:30
1
Solved
As in django with sql backend we can convert a queryset into flat list by
foovar.objects.all().values_list('id', flat=true)
give a list of ids
How to get list of ids in mongo backend ,ORM being...
Tahsildar asked 3/8, 2015 at 6:15
1
Solved
I am following tumbleblog application here
my __init__.py:
from flask import Flask
from flask.ext.mongoengine import MongoEngine
app = Flask(__name__)
app.config["MONGODB_SETTINGS"] = {'DB': "se...
Bandit asked 8/4, 2015 at 14:44
1
I'm just staring out with MongoDB and I'm staring an application with flask-mongoengine and I want to aggregate a few documents.
I'm using flask-mongoengine and when trying
class MyDocumentModel(...
Valtin asked 13/11, 2013 at 13:16
1
Solved
I need to remove a particular column (in this case "Paper ID") from a DictField (in this case "content") in all documents. The corresponding mongo-shell script for the same is
db.list_input_file....
Shrunken asked 1/10, 2014 at 22:19
3
Solved
I am trying to build a document object using from_json method. object.save() throws no error, but the document is not inserted in mongo.
On the other hand if I make the object by assigning values ...
Buttonwood asked 12/2, 2014 at 15:15
1
Solved
I'm trying to connect to a MongoDB replicaSet using MongoEngine? I would like to connect to any available secondary server.
I can only find pyMongo examples. Any help?
Ideation asked 18/12, 2013 at 20:6
1
Solved
I am using Flask, mongoengine for a project and I am trying to get basic stuff working from http://docs.mongodb.org/manual/tutorial/write-a-tumblelog-application-with-flask-mongoengine/
After impl...
Ornamental asked 29/7, 2013 at 6:2
1
Solved
I am using MongoDB with Flask-MongoEngine as my ORM component to my web app.
I have structured the User document schema like so:
from ..core import db
class UserComics(db.EmbeddedDocument):
fav...
Twocycle asked 26/7, 2013 at 4:20
1
© 2022 - 2025 — McMap. All rights reserved.