Re: 'NoneType' object has no attribute 'get_host' in google authentication

2023-11-05 Thread Amen Guda
The error "NoReverseMatch" typically occurs in Django when the URL cannot be resolved during the reverse URL lookup. In your case, it seems that the error is coming from trying to reverse the URL named 'add_time_slot' with an empty argument. T*he error message mentions that it tried one pattern for

Re: NoReverseMatch at / Reverse for 'add_time_slot' with arguments '('',)' not found. 1 pattern(s) tried: ['add_time_slot/(?P[0-9]+)/\\Z']

2023-11-05 Thread Amen Guda
To resolve this issue, you should check the place in your code where the URL reversal with the name 'add_time_slot' is happening with an empty argument (''). Ensure that the argument being passed to the URL reversing function isn’t empty and correctly matches the URL pattern specified in your URL c

Re: 'NoneType' object has no attribute 'get_host' in google authentication

2023-11-05 Thread Amen Guda
> > request.get_host() + '/auth/google/callback' On Sun, Nov 5, 2023 at 12:27 AM Amen Guda wrote: > *The error "NoneType' object has no attribute 'get_host'" typically occurs > in Django when there's an attempt to access a property or method on an > object that is None. Specifically, this erro

Re: 'NoneType' object has no attribute 'get_host' in google authentication

2023-11-05 Thread Amen Guda
*The error "NoneType' object has no attribute 'get_host'" typically occurs in Django when there's an attempt to access a property or method on an object that is None. Specifically, this error often arises when accessing a request object's get_host() method when the request object itself is None.*