milesrichardson / ParsePy

A relatively up-to-date fork of ParsePy, the Python wrapper for the Parse.com API. Originally maintained by @dgrtwo
MIT License
516 stars 184 forks source link

[Not Exactly Issue] Has anyone used this library successfuly with Django? #54

Closed jeancarlozapata closed 10 years ago

jeancarlozapata commented 10 years ago

This library looks amazing but I was wondering if anyone has managed to use it with Django instead of the Django models. It looks like both APIs are somewhat similar (I think you did it on purpose) but I'm curious how/where should I put the register(<application_id>, <rest_api_key>[, master_key=None]) function call and get some advice.

I know the Django admin is not going to work out of the box (and actually it may take a lot of effort to make it work with this library) but I like a lot the views' system and project structure of Django.

Thanks in advance and keep up the good work! :+1:

lullis commented 10 years ago

In my case: yes, I needed to integrate a Django web application with Parse - and that's what lead me to look into/contribute to parse_rest.

To use with django, call the register function at the end of your settings.py. This should be enough.

But by "using with Django", it's only about integrating different systems. parse_rest is still a long way of becoming something like a database engine for django. So having a "parse-powered" admin app is currently a no-go.

farin commented 10 years ago

Settings are imported twice by Django. Slightly better is place register to model.py of any django app.

lullis commented 10 years ago

Good call. I actually forgot about that.

jeancarlozapata commented 10 years ago

Thanks everyone for the info/advice. I'll give it a try on a pet project and if it works for me, I'll post my experiences with the library, should anyone be interested