Re: How to consume DJango Rest Api with DJango?

2020-10-11 Thread Dvs Khamele
yni...@gmail.com> wrote: > I am trying to consume a django api with django itself. Should I use class > generic > views or normal views. Do you know what is the best approach? > > Right now, to list items I am using TemplateView > > class RegionListView(TemplateView): > tem

Re: How to consume DJango Rest Api with DJango?

2020-10-04 Thread Arpana Mehta
You can googlle about `mixin` classes in Django CreateUpdateRetrieve mixins class along with your template or API view. On Thu, 1 Oct 2020, 05:10 Stalin Vladimir Gomez Gutierrez, < stanleyni...@gmail.com> wrote: > I am trying to consume a django api with django itself. Should I

How to consume DJango Rest Api with DJango?

2020-09-30 Thread Stalin Vladimir Gomez Gutierrez
I am trying to consume a django api with django itself. Should I use class generic views or normal views. Do you know what is the best approach? Right now, to list items I am using TemplateView class RegionListView(TemplateView): template_name = 'region/list.html' def get(se

Re: Built a API with django rest framework how do i get a key for people or is it open to them

2016-04-11 Thread Amandeep Singh
Hi Robert As for as API key is concerned it's mainly to track usage records for a key which would be linked to a person/user entity and provide a layer to block unwanted requests(stops requests at middleware before hitting the view). This key could be sent in headers or as the query parameter. Bu

Built a API with django rest framework how do i get a key for people or is it open to them

2016-04-11 Thread djangorobert
Hello fellow django users I recently built a api for just a small sprint board where tasks can be set its built with django and django rest framework what i see though is most apis have like a key that others can use do i have to offer api keys or is mine able just able to be free thats where

Re: Best practice when designing an api (with Django)

2015-08-31 Thread Joakim Hove
Thank you for an informative answer ;-) > > To get the author information for the authors of the book with ID=7. In > my > > view I have used: > > > > book = Book.objects.get( pk = 7 ) > > Where exactly did you use this? Can you post up a copy of the view? > This was currently only a constr

Re: Best practice when designing an api (with Django)

2015-08-31 Thread James Schneider
> > I have been maintaining a small Django based website for some time. It is > mostly based on conventional views returning HTML, but both to support > JavaScript interactivity and to interact with a traditional desktop > application I am gradually creating a REST based API. Up until now I have >

Best practice when designing an api (with Django)

2015-08-31 Thread Joakim Hove
Hello; [ This question might be more about general principles for API design than Django, but since Django is my tool of choice - and my context of understanding, I am posting it here.] I have been maintaining a small Django based website for some time. It is mostly based on conventional views re

Re: API with django

2010-05-24 Thread Alexandre González
Thanks for your 2c :D It works for me now with curl, I've read about serialization and test again with a ajax request thanks! On Mon, May 24, 2010 at 17:45, Ovnicraft wrote: > > > El 23 de mayo de 2010 22:05, Alexandre González escribió: > > Hi! >> >> I must develop a django app that receive

Re: API with django

2010-05-24 Thread Ovnicraft
El 23 de mayo de 2010 22:05, Alexandre González escribió: > Hi! > > I must develop a django app that receives XML and returns XML. > > What's the best way to do this? Create a view that receive the XML and > parse it to return a template with the XML resultant? > > I'm newbie in django and need y

Re: API with django

2010-05-24 Thread Alexandre González
I've made some progress... but I always get an error 401 at the server. This is my code, please help me!!! I've lost some hours trying to do it work: urls.py --- *from django.conf.urls.defaults import ** *from piston.resource import Resource* *from piston.authentication import HttpBasicAuthen

Re: API with django

2010-05-24 Thread Alexandre González
I'm reading the piston sample, and it appears to be my necessary app, but the documentation is very few I think :_( As I say I'm newbie and I can't make the simplest documentation_view works, when I port to my app, I get a TemplateDoesNotExist documentation.html WTF!? if no file called "documentat

Re: API with django

2010-05-24 Thread Simone Dalla
2010/5/24 Alexandre González > Hi! > > I must develop a django app that receives XML and returns XML. > > What's the best way to do this? Create a view that receive the XML and > parse it to return a template with the XML resultant? > > I'm newbie in django and need your tips :) > http://docs.d

Re: API with django

2010-05-24 Thread Bruce Wang
2010/5/24 Alexandre González > Hi! > > I must develop a django app that receives XML and returns XML. > > What's the best way to do this? Create a view that receive the XML and > parse it to return a template with the XML resultant? > > I'm newbie in django and need your tips :) > > > You may wan

Re: API with django

2010-05-24 Thread Dennis Kaarsemaker
On ma, 2010-05-24 at 05:05 +0200, Alexandre González wrote: > I must develop a django app that receives XML and returns XML. > > What's the best way to do this? Create a view that receive the XML and > parse it to return a template with the XML resultant? That would be a good way of doing it. You

API with django

2010-05-23 Thread Alexandre González
Hi! I must develop a django app that receives XML and returns XML. What's the best way to do this? Create a view that receive the XML and parse it to return a template with the XML resultant? I'm newbie in django and need your tips :) Regards, Álex González -- Please, don't send me files with

Re: help request using python_twitter api with django and errno 25

2008-06-28 Thread Hani
Hi James, Thanks. Perfect response and very helpful. Greatly appreciate it. Hani On Jun 28, 1:03 am, "James Bennett" <[EMAIL PROTECTED]> wrote: > On Fri, Jun 27, 2008 at 11:02 PM, Hani <[EMAIL PROTECTED]> wrote: > > My questions are: > > 1. can anyone explain the error a little better to me? >

Re: help request using python_twitter api with django and errno 25

2008-06-27 Thread James Bennett
On Fri, Jun 27, 2008 at 11:02 PM, Hani <[EMAIL PROTECTED]> wrote: > My questions are: > 1. can anyone explain the error a little better to me? > 2. Is it a bug in the python-twitter api, or in django, or in my code? > 3. Is there a fix that does not involve using the patch? > 4. If I have to use t

help request using python_twitter api with django and errno 25

2008-06-27 Thread Hani
Hi, First, please know that I am a novice to django and python so please be patient. Am trying to use the python-twitter api with a little django app. When I test the commands from the terminal, they run perfectly, however, when run from django, they produce an errno 25 as follows: [Errno 25] I