I usually write the web application first, without consuming my own API, 
and when I need to build versions for other formats, such as mobile native 
apps, I create an API and consume this from the App.

There are several framework to make creating an API for you application 
easier, popular examples are Tastypie [1] and django-rest-framework [2].

There are alot of buzz about building a service infrastructure for apps, 
but really, you shouldnt start there if you're new. If you're using 
class-based-views, subclassing them and generating JSON instead will be 
very easy. 

[1] https://readthedocs.org/projects/django-tastypie/
[2] http://django-rest-framework.org/

On Friday, December 20, 2013 5:45:45 PM UTC+1, Mario Osorio wrote:
>
> I need to work on a django app that will eventually benefit from a RESTful 
> API so it can be used from any web browser as well a from apps writtens for 
> iOS and Android.
>
> Being so new to django development I don't even have any ideas on how to 
> use a RESTful API, for example,
>
>
>    1. Should I begin the development use a RESTful API, or should I add 
>    ir when needed? ( it IS going to be used anyways)
>    2. Of course I understand I'm adding another layer of work to the 
>    final product but, can someone please explain how bad deep and how 
>    complicated this layer might be?
>    3. I've found a couple of online tutorials and I'll soon be working on 
>    them, but I honestly think there is nothing quite like reading the 
> opinions 
>    of different people as to what the workflow with a RESTful API in django 
>    implies. I think a simple overview of the general workflow will answer 
> most 
>    of the questions I have in mind right now.
>
> Thanks a lot in advanced!
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3c101be4-9e52-4733-9bb1-61d053ad18d9%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to