Requesting data from an API and rendering data on website

41 views
Skip to first unread message

nAncy sharma

unread,
Nov 18, 2015, 5:34:24 AM11/18/15
to Django users
Hi,


I am using Django Cms 3.1.3. I want to give a call (request ) to an API and display the result on my website. 
Could anyone help me with this ? I am new to django cms !

Avraham Serour

unread,
Nov 18, 2015, 5:56:16 AM11/18/15
to django...@googlegroups.com

Can you do it in plain python?


--
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/85c04d98-8cbe-414b-808a-6ff1dede2442%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

nAncy sharma

unread,
Nov 18, 2015, 6:14:15 AM11/18/15
to Django users
Hi Avraham,

Yes that should work.
But since i am new to django cms , i don't know the files (ex: model.py ,view.py etc ) which all files need changes and where does the actual code of requesting to an API is to be written.

Jani Tiainen

unread,
Nov 18, 2015, 6:50:46 AM11/18/15
to django...@googlegroups.com
Then I suggest that you do official tutorial from Django documentation.

It will give you a grasp what Django itself is and how it works. Django CMS is just built on top of Django so principles do apply there as well.

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

--

Jani Tiainen

Adam Simon

unread,
Nov 18, 2015, 12:51:29 PM11/18/15
to Django users


With all respect Jani, I do not think this is the right answer. Django-cms per se does not give top level access to the views, so integrating pure python is not as easy as it sounds.  Adam
Reply all
Reply to author
Forward
0 new messages