Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Eli Boyarski
    @eli-b
    Thanks @lig! If my hack is written well enough, would you guys be interested in such a solution?
    Eli Boyarski
    @eli-b
    Apparently I needed to add allow_inheritance to the meta. This is already supported by MongoEngine :)
    Serge Matveenko
    @lig
    :)
    Omer Katz
    @thedrow
    @/all We want to conduct a roadmap discussion for 1.0 soon
    Who is available tomorrow or the day after?
    I want at least 5 people available including @rozza to ensure we cover everything.
    Omer Katz
    @thedrow
    @/all What about this week?
    Ross Lawley
    @rozza
    I’m around most of this week :+1:
    Khairul Imam
    @khrlimam
    hello everyone..
    Khairul Imam
    @khrlimam
    is it possible to use autoincrement field on mongoengine.
    MohamedShawky
    @MohamedShawky
    how i can make api for this model
    hth
    @hontrang
    Hi, i using below code to practice $lookup aggregate but got error, could you guys plz help me?
    @detail_route(methods=['GET'])
        def aggregate(self, request, *args, **kwargs):
            """
            demo method using aggregate to query model user reference to product
            """
            pipeline = [{"$unwind": "$cartList"},{
                "$lookup": {
                    "from": "products",
                    "localField": "cartList",
                    "foreignField": "_id",
                    "as":"product_from_cartList"
                }
            }]
            snippets = Users.objects.aggregate(pipeline)
            return Response(snippets, status=status.HTTP_200_OK)
    Error:
    Request Method:    GET
    Request URL:    http://localhost:8000/webapp/api/users/59746ba996279a2b10bbc701/aggregate/
    Django Version:    1.11.3
    Exception Type:    OperationFailure
    Exception Value:    
    Each element of the 'pipeline' array must be an object
    Exception Location:    D:\IoT\angular\django\env\lib\site-packages\pymongo\helpers.py in _check_command_response, line 210
    Python Executable:    D:\IoT\angular\django\env\Scripts\python.exe
    Python Version:    3.6.1
    Python Path:    
    ['D:\\IoT\\angular\\django\\backend',
     'D:\\IoT\\angular\\django\\env\\Scripts\\python36.zip',
     'D:\\IoT\\angular\\django\\env\\DLLs',
     'D:\\IoT\\angular\\django\\env\\lib',
     'D:\\IoT\\angular\\django\\env\\Scripts',
     'c:\\users\\abc\\appdata\\local\\programs\\python\\python36-32\\Lib',
     'c:\\users\\abc\\appdata\\local\\programs\\python\\python36-32\\DLLs',
     'D:\\IoT\\angular\\django\\env',
     'D:\\IoT\\angular\\django\\env\\lib\\site-packages']
    Server time:    Sun, 23 Jul 2017 10:31:37 +0000
    John W. Nolette
    @neetjn
    Hello everyone
    Is anyone available?
    Alexey
    @alex2304
    Hi guys! Why there are still not so many people here?)
    John W. Nolette
    @neetjn
    The mongo slack python channel is very helpful
    Alexey
    @alex2304
    @neetjn Could you give a link?
    John W. Nolette
    @neetjn
    had to dig for it
    keep thinking its mongodb.slack.com
    Monkee
    @cunjif
    how to batch insert?
    Python Hub
    @pythonhubpy
    How to delete index with mongoengine?
    NomeChomsky
    @NomeChomsky
    hey I have a seemingly simple requirement but I can't seem to figure
    class Signal(Document):
        user = ReferenceField('User', required=True)
        timestamp = StringField(default=str(datetime.now))
    
        meta = {'allow_inheritance': True, 'strict': False}
    
      signals = Signal.objects(user=user)
     signals_wanted_with_user = [signal.to_mongo().to_dict() for signal in signals]
    I want the signals _wanted to come back with the user field being at least populated by user.username or similar