Re: Where does business logic go?

2020-03-13 Thread Gonzalo Amadio
ttps://groups.google.com/d/msgid/django-rest-framework/648ec717-2783-44c6-9700-c158fd446b58%40googlegroups.com > <https://groups.google.com/d/msgid/django-rest-framework/648ec717-2783-44c6-9700-c158fd446b58%40googlegroups.com?utm_medium=email&utm_source=footer> > . > --

Re: Android + Django rest framework

2020-02-25 Thread Gonzalo Amadio
>From your app, you have to make API calls to the rest endpoints. Using some android library to make http requests from your app. Then you will receive json in your Android app. Just make a Google search , there are tons of posts El mar., 25 feb. 2020 15:01, Zain Mehar escribió: > please anyon

Re: TokenAuthentication Expires

2020-02-10 Thread Gonzalo Amadio
eived this message because you are subscribed to the Google Groups > "Django REST framework" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-rest-framework+unsubscr...@googlegroups.com. > To view this discussion on the we

Re: TokenAuthentication Expires

2020-02-10 Thread Gonzalo Amadio
roups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-rest-framework/7e32871b-f123-4456-9015-a3f8c8c7dd42%40googlegroups.com > <https://groups.google.com/d/msgid/django-rest-framework/7e32871b-f123-4456-9015-a3f8c8c7dd42%40googlegroups.com?utm_m

Re: Use model properties in serializer without saving the model

2020-01-23 Thread Gonzalo Amadio
msgid/django-rest-framework/9f955352-fc89-404b-a9d0-aa282bc4290e%40googlegroups.com > <https://groups.google.com/d/msgid/django-rest-framework/9f955352-fc89-404b-a9d0-aa282bc4290e%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Gonzalo Amadio -- You

Re: Django Framework with Requests html library

2020-01-22 Thread Gonzalo Amadio
If you do not share some code or the error, it's impossible for anyone to guess what's happening El mié., 22 ene. 2020 2:23, naveen Kumar escribió: > is Requests html library works with django ? > > The error is while javascript rendering > > i am getting error like this thread is already runnin

Re: Retrieving Unrelated Objects in Django REST Framework

2020-01-20 Thread Gonzalo Amadio
ework/68a53b1a-9ac8-41f9-856f-26f54046e35e%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Gonzalo Amadio -- You received this message because you are subscribed to the Google Groups "Django REST framework" group. To unsubscribe from this group and stop

Re: self.request in APIView

2020-01-16 Thread Gonzalo Amadio
m. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-rest-framework/e66f30c2-3164-432c-99b8-ef73ca4d01ce%40googlegroups.com > <https://groups.google.com/d/msgid/django-rest-framework/e66f30c2-3164-432c-99b8-ef73ca4d01ce%40googlegroups.com?utm_medium=ema

Re: self.request in APIView

2020-01-14 Thread Gonzalo Amadio
gt; email to django-rest-framework+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-rest-framework/f4bed9b8-f73c-4ffc-83b9-59b97a1b1989%40googlegroups.com > <https://groups.google.com/d/msgid/django-rest-framework/f4bed9b8-

Re: DRF tests failing when running on Github actions

2020-01-07 Thread Gonzalo Amadio
roups.google.com/d/msgid/django-rest-framework/01dcde1e-ea10-44ba-9197-9fea2a434408%40googlegroups.com > <https://groups.google.com/d/msgid/django-rest-framework/01dcde1e-ea10-44ba-9197-9fea2a434408%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Gonzalo A

Re: How to add social authentication in backend

2019-12-26 Thread Gonzalo Amadio
There is a famous one : https://django-rest-auth.readthedocs.io/en/latest/installation.html#social-authentication-optional Ok my experience, all packages are a bit lack of documentation and examples. Soy you will have to struggle a bit. Try to search for someone's post on how to use it. Cheers

Re: obtain_auth_token using LDAP backend

2019-12-17 Thread Gonzalo Amadio
com>) escribió: > Hi, I'm creating a food ordering website with Django, but it was made by > Django 1.1 version. Are all the installments going to work with my > application? > https://www.youtube.com/watch?v=yDv5FIAeyoY > > On Mon, Dec 16, 2019 at 4:54 AM Gonzalo Amadio &g

Re: obtain_auth_token using LDAP backend

2019-12-16 Thread Gonzalo Amadio
Is there an error? Have you debugged? Both in the Django and ldap endpoint to see if some connection is going out from Django and arriving to ldap server? Have you used pdb? El dom., 15 dic. 2019 17:49, Ido Ashkenazi escribió: > ,Hey > .I am trying to use token authentication with LDAP backend

Re: different data-contract(model) in different layer

2019-11-05 Thread Gonzalo Amadio
ework/abeb31aa-b4a7-4473-8901-372fe2aee2d6%40googlegroups.com > <https://groups.google.com/d/msgid/django-rest-framework/abeb31aa-b4a7-4473-8901-372fe2aee2d6%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Gonzalo Amadio -- You received this m

Re: How to create django-rest-framework without authentication

2019-10-30 Thread Gonzalo Amadio
In the settings you have t configure no authentication. Here you have a reference: https://stackoverflow.com/questions/27085219/how-can-i-disable-authentication-in-django-rest-framework El mar., 29 oct. 2019 23:48, Sajan s escribió: > Hi All, > > i am creating my new API using django-rest-frame

Re: Redirect

2019-09-12 Thread Gonzalo Amadio
- > > -- > You received this message because you are subscribed to the Google Groups > "Django REST framework" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-rest-framework+unsubscr...@google

Re: RegisterSerializer doesn't recognize data from rest-auth/registration API, except for email data.

2019-09-12 Thread Gonzalo Amadio
return user > > class VerifyEmailSerializer(serializers.Serializer): >key = serializers.CharField() > > > Could you please give me advises. > Thank you very much. > > > > -- > You received this message because you are subscribed to the Google Groups &

Re: User Defined Settings

2019-07-18 Thread Gonzalo Amadio
This package can solve your request. You can define settings , and then update them on the admin. Without having to reload server https://github.com/EliotBerriot/django-dynamic-preferences El vie., 19 jul. 2019 9:15, Ryan Quinn escribió: > Is there a place for user defined settings? Stuff that

Re: Django Project Folder Structure

2019-07-17 Thread Gonzalo Amadio
I like to create a folder for the apps.. So would be start-project name cd name mkdir apps startapp name_of_app And outside apps can reside other libs, and rest of the folders El jue., 18 jul. 2019 3:07, Nehemie Balukidi escribió: > Hi there, > > The recommended structure is Project-> Apps.

Re: How can I serialize filtred FK values.

2019-07-11 Thread Gonzalo Amadio
You need to make another filter. With the one you have.. you obtained the ok you want to obtain. Then you need to filter modelB where pk are in that first filter you made El vie., 12 jul. 2019 2:17, Василий Русин escribió: > Hm, ok, but .values() return only one FK. It's exactly the kind of > b

Re: django monitoring

2019-07-05 Thread Gonzalo Amadio
You can use Django logger. Or a package like this one https://pypi.org/project/django-sql-explorer/ El jue., 4 jul. 2019 5:59, NP escribió: > I am interested in tracking things like slow requests, query run time > > > > On Wednesday, July 3, 2019 at 12:46:05 PM UTC-5, Matthew Stroud wrote: >> >>

Re: Dynamic nested serializers

2019-06-12 Thread Gonzalo Amadio
e because you are subscribed to the Google Groups > "Django REST framework" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-rest-framework+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://gro

Re: Using Dyanamic Serializer in the Different Filters and Model View set

2019-06-06 Thread Gonzalo Amadio
ngo-rest-framework/789d7762-a01a-42d1-9caf-a436b2eb200b%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Gonzalo Amadio -- You received this message because you are subscribed to the Google Gr

Re: How to intermediate all API request calls

2019-06-05 Thread Gonzalo Amadio
iscussion on the web visit > https://groups.google.com/d/msgid/django-rest-framework/2f4510ac-52e0-4e0e-a283-129e5171120e%40googlegroups.com > <https://groups.google.com/d/msgid/django-rest-framework/2f4510ac-52e0-4e0e-a283-129e5171120e%40googlegroups.com?utm_medium=email&utm_source=foo

Re: Best approach to master/detail APIs

2019-05-09 Thread Gonzalo Amadio
Check graphql with Django api El lun., 22 abr. 2019 12:48, Alexander Lamas escribió: > Hi all, > > I'm new to DRF, and would like to ask your opinion when it comes to > master/detail development of the APIs. > > What is the most reliable approach to master/detail APIs when it comes to > developm

Re: getting keyError: 'request' i am getting this error when i am to create an evaluation test i am newbie to django rest framework can somebody help me why i am getting this error

2019-04-09 Thread Gonzalo Amadio
Key error, means that key 'question' it's not in data. Put a debugger and inspect what's in data. El lun., 8 abr. 2019 23:11, zohaib younis escribió: > arbaz bro i am still getting the same error > > On Mon, Apr 8, 2019 at 3:10 PM zohaib younis > wrote: > >> from rest_framework import serializ

Re: Serving an OpenAPI / Swagger schema via embedded SwaggerUI

2019-04-01 Thread Gonzalo Amadio
I tried and it's working for me. Let me know, if not I copy it for you El mar., 2 abr. 2019 3:06, Alan Crosswell escribió: > Sorry for the interruption but did anyone happen to cache a copy of Matt's > post from dev.to? It's down right now (503 timeouts). This is of course > when I blocked out t

Re: Dynamically Passing Variables Into The Serializer

2019-03-11 Thread Gonzalo Amadio
... > > > -- > You received this message because you are subscribed to the Google Groups > "Django REST framework" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-rest-framework+unsubscr...@googlegroups.com. >

Re: Information

2019-01-12 Thread Gonzalo Amadio
I think you are a bit confused of the purpose of each package. The ones you have named, each has a different purpose. As said, you can do this with only Django, and plain Js.. Rest framework is more API / web services oriented. What you are trying to do as I understand it's a "normal" website..

Re: REST Calls to Filter Based On Greater Than, Less Than, or Range

2019-01-07 Thread Gonzalo Amadio
Can you give code why they don't work? Error messages, debug code? El sáb., 5 ene. 2019 0:07, Jason escribió: > I've tried django-filters and django-rest-framework-filters but neither >> work as stated >> > > what do you mean by this? > > -- > You received this message because you are subscribed

Re: Quick Start Tutorial: NameError: name 'viewsets' is not defined

2018-12-23 Thread Gonzalo Amadio
;> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>&g

Re: Reverse function with url namespacecing (for api versioning)

2018-12-21 Thread Gonzalo Amadio
If I do not put app_name inside apps url.py, finally the reverse is as I wanted El sáb., 22 dic. 2018 3:07, Gonzalo Amadio escribió: > I think (i am not sure if its correct) I make it work like this. In my > main urls.py > > api_v1 =[ > url(r'^api/v1/

Re: Reverse function with url namespacecing (for api versioning)

2018-12-21 Thread Gonzalo Amadio
: reverse('v1:authentication:authentication-user-detail', kwargs={'pk': '5'})'/api/v1/users/5/' And not like I wanted that is: reverse('v1:authentication-user-detail' . El viernes, 21 de diciembre de 2018, 12:17:19 (UTC+11), Gon

Reverse function with url namespacecing (for api versioning)

2018-12-20 Thread Gonzalo Amadio
I want to version my api, but cannot make reverse function work. I am following the namespace versioning schema proposed in the DRF website : namespaceversioning I have one app called *authentication* and inside