Django Rest Framework inside of Django Project

38 views
Skip to first unread message

Sylvain Dégué

unread,
Aug 26, 2016, 4:09:12 PM8/26/16
to Django users
Hi,

I am building a mobile application and I need a Rest API and a web version of my app. So I was wondering if I could make a website with Django Rest Framework or if I have create a Django project for my website and a Django Rest Framwork for my API

John

unread,
Aug 26, 2016, 7:01:55 PM8/26/16
to django...@googlegroups.com
Sylvain,

It is your choice. You can have views which return HTML and views which form a REST interface concurrently within the same project. You can choose to implement your non-mobile website using a javascript UI. Or you can use frameworks like React.js and do everything with one set of JS. To get a REST interface for an existing (non-REST) project is easy; check out http://www.django-rest-framework.org/.

John


On 26/08/16 17:07, Sylvain Dégué wrote:
Hi,

I am building a mobile application and I need a Rest API and a web version of my app. So I was wondering if I could make a website with Django Rest Framework or if I have create a Django project for my website and a Django Rest Framwork for my API
--
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/8cea6e27-d16f-4225-84c7-944b0963eabe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Reply all
Reply to author
Forward
0 new messages