Mobile eCommerce with Django

169 views
Skip to first unread message

Jordan Koncz

unread,
Mar 23, 2016, 8:29:36 PM3/23/16
to Django users
I'm working on a Django back-end that provides an API (using Django REST Framework) for a mobile app. I'm looking to add eCommerce functionality to this back-end, with all of this functionality being used by the mobile app via the API.

The eCommerce functionality needed is the usual standard stuff (products, cart, checkout, orders, payment gateway integration etc.), but it will need to be flexible enough so that I can create some relations between my existing models and the eCommerce models (particularly with products).

Has anyone successfully implemented something like this before? If so, what did you use?

I've tried using Django Oscar and Django Oscar API, but ended up ditching this approach as it seemed like it was really only suited to being used for an eCommerce website so it felt like I was wrestling with Django Oscar to get things working completely via a REST API. There was also a lack of documentation for using Django Oscar to provide eCommerce functionality via a REST API.

I've also looked at external options like Moltin which provides eCommerce functionality via an API, but I don't like the thought of needing to implement functionality at some point in the future which isn't available in Moltin and having to completely scrap Moltin or do some tedious workarounds to implement the functionality.

I'm now looking at the option of Django Shop, which [according to the documentation](http://django-shop.readthedocs.org/en/latest/reference/serializers.html) seems like it would support using all of its functionality via a REST API. Does anyone have experience with using Django Shop like this?

TL;DR: Looking for options for providing eCommerce functionality that is used entirely by a mobile app via a REST API.

m1chael

unread,
Mar 24, 2016, 8:27:37 AM3/24/16
to django...@googlegroups.com
You might be able to tailor Saleor to fit your needs.




--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/57585783-7dc0-4033-85b7-712c5b41fcff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

René Fleschenberg

unread,
Mar 25, 2016, 5:56:37 AM3/25/16
to django...@googlegroups.com
Hey Jordan,

On Wednesday 23 March 2016 17:03:59 Jordan Koncz wrote:
> I'm now looking at the option of Django Shop, which [according to the
> documentation](http://django-shop.readthedocs.org/en/latest/reference/seri
> alizers.html) seems like it would support using all of its functionality
> via a REST API. Does anyone have experience with using Django Shop like
> this?

Co-maintainer of django-shop here. The current django-shop codebase is still
pretty new (the old django-shop 0.2 code was more or less completely
redesigned and rewritten by Jacob Rief). Personally, I know of two
deployments in production right now, and two more likely going online within
a few weeks after Djangocon Europe. So far, I don't know of any "mobile
only" deployments, but that is definitely a use-case we do want to support.

I believe it should be possible to use django-shop as it is right now for
your use-case. Since django-shop itself does not define any concrete models,
you should be able to hook in the models of your choice, including any
relationships you chose to define. Should any part of django-shop's
functionality not be available via the REST API, we consider that a bug and
will fix it ASAP.

That said, honesty demands that I mention that you should be prepared to
handle a few rough edges here and there, since this is still basically a new
project. However, Jacob and me will gladly help out if you run into any
trouble, and we are usually quite quick in reacting to user feedback and
fixing bugs.

Oddly enough, just today, I started to work on some documentation that may
be interesting for your use-case. I hope to finish this documentation over
the course of this weekend. You can watch the progress on this branch:

https://github.com/rfleschenberg/django-shop/tree/manual-install-docs

At the moment, the particular file is:

https://github.com/rfleschenberg/django-shop/blob/manual-install-docs/docs/reference/manual-installation.rst

Feel free to contact me if you want to discuss things further. Good ways to
reach me are e-mail, #django-shop on Freenode or the Gitter room at
https://gitter.im/awesto/django-shop

Cheers,
--
René Fleschenberg
Reply all
Reply to author
Forward
0 new messages