Django REST Framework

54 views
Skip to first unread message

Max Nathaniel Ho

unread,
Oct 22, 2014, 11:14:44 PM10/22/14
to django...@googlegroups.com
Hi all,

I just came across Django REST Framework. From what I have read up so far, its a Web API framework.

What does it do and what is the difference between this and the regular Django Web Framework?

Thanks! 

Russell Keith-Magee

unread,
Oct 22, 2014, 11:51:46 PM10/22/14
to Django Users
Hi Max,

Django ReST Framework, as the name suggests, is a framework for building ReST APIs in Django.

It's not officially part of the Django framework, but it's creator and principle maintainer - Tom Christie - is a member of the Django core team. Tom recently held a Kickstarter to fund v3 of the framework; that Kickstarter was extraordinarily successful due to the support of the community.

If you need to write a ReSTful API for your Django app, it's well worth your time to take a look at it.

Yours,
Russ Magee %-)

--
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/94c429f5-6028-4e17-9839-4e5c76f99a6d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Max Nathaniel Ho

unread,
Oct 23, 2014, 4:15:28 AM10/23/14
to django...@googlegroups.com
Hi Russell,

Thanks for your reply. As I am fairly new to django and programming in general, do you mind sharing what REST APIs actually do? Thank you!

--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/z9FJVsVnK4o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.

To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.

For more options, visit https://groups.google.com/d/optout.



--
Regards,
Max Nathaniel Ho.

Andreas Kuhne

unread,
Oct 23, 2014, 4:19:04 AM10/23/14
to django...@googlegroups.com
Hi Max,

I think you should really just google it a bit and read about it. http://en.wikipedia.org/wiki/Representational_state_transfer is a good start.

A simplified version is that a REST API allows you to get information about your database models in a structured and predictive way. HOW the API should behave is also documented.

You wouldn't use it for presenting information on the web, but rather for connecting to your backend via javascript or connecting 2 different projects over the Internet.

Regards,

Andréas

Max Nathaniel Ho

unread,
Oct 23, 2014, 4:20:37 AM10/23/14
to django...@googlegroups.com
Hi Andreas,

Thank you. Will read up!


For more options, visit https://groups.google.com/d/optout.

Lachlan Musicman

unread,
Oct 23, 2014, 5:43:52 AM10/23/14
to django...@googlegroups.com
The way I always describe APIs (in a broad, general sense) is:

Image internet service "Twotter" had posts, and each post had a date.

If they had a date API you might be able to get all of the posts for a
month like:

for month in months:
return "https://twotter.org/%s" %month

and then you could see all the twotter posts for the month "month".

Of course, it could be any variable on any model - gender or length or
a boolean or whatever

Cheers
L.
> https://groups.google.com/d/msgid/django-users/CAMognGGib0aQ190%2BYTLDRx7Zfmt6PRUpyiHHGuj8ofQ6ctG10Q%40mail.gmail.com.
>
> For more options, visit https://groups.google.com/d/optout.



--
You have to be really clever to come up with a genuinely dangerous
thought. I am disheartened that people can be clever enough to do that
and not clever enough to do the obvious thing and KEEP THEIR IDIOT
MOUTHS SHUT about it, because it is much more important to sound
intelligent when talking to your friends.
This post was STUPID.
-----------------------------------------------------------------------------------------------------------
The Most Terrifying Thought Experiment of All Time
http://www.slate.com/articles/technology/bitwise/2014/07/roko_s_basilisk_the_most_terrifying_thought_experiment_of_all_time.html

Max Nathaniel Ho

unread,
Oct 23, 2014, 6:06:17 AM10/23/14
to django...@googlegroups.com
Hi Lachlan,

Simple and clear explanation. Thanks!


For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages