Skip to content Skip to sidebar Skip to footer

Add And Save Objects To Parse.com Db From Django

I'm experimenting with parse.com as a db for my django app. I've installed parse_rest and am trying to follow http://runnable.com/UrzUjbmPNzlOAAOw/using-parse-com-with-python-for-t

Solution 1:

It looks like you are using ParsePy. If you don't want to write your own wrapper for parse.com (which I suggest), try calling "register" first. Then define a python class that inherits from the Object

from parse_rest.connection import register
register(<application_id>, <rest_api_key>)



from parse_rest.datatypes import Object
class Profile(Object):
    pass




# instantiate with parameters
profile = Profile(name='Johnny', age=27)

# Change parameters
profile.name = "John"
profile.save()

Post a Comment for "Add And Save Objects To Parse.com Db From Django"