Hi do you hire contract based python/django freelancer?
We can help you in this and related techincal tasks at fair prices. Reply
or send email to divy...@pythonmate.com
Best Regards,
Divyesh Khamele,
Pythonmate


On Thu, 1 Oct 2020, 5:10 am Stalin Vladimir Gomez Gutierrez, <
stanleyni...@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):
>     template_name = 'region/list.html'
>
>     def get(self,request):
>         r = requests.get('http://127.0.0.1:8081/regions')
>         regions = r.json()
>         region_list = {'regions':regions}
>         return render(request, self.template_name, region_list)
>
> I need help to implement create and update views to use my api methods. Do
> you guys have any idea?
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/03abb212-8408-4fd7-8c5f-b78e9402bf38n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/03abb212-8408-4fd7-8c5f-b78e9402bf38n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH9mneXkwt9kiyyJNq7VZsLh26uXo7r0fmjvfhyG3MC2YScd_w%40mail.gmail.com.

Reply via email to