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
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
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
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
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
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
>
> 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
>
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
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
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
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
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
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
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
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
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
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?
>
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
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
19 matches
Mail list logo