Re: Django >=3 closes dev server when trying to log in in admin

2020-01-08 Thread Cristhiam Gabriel Fernández
Yup! that works 👏 Thank you so much El miércoles, 8 de enero de 2020, 13:26:22 (UTC-5), Alfredo Silveira escribió: > > Yes, python version 3.8 not Django > > > > On 8 Jan 2020, at 13:13, Cristhiam Gabriel Fernández > wrote: > >  > 3.8? 🤔 > Did you mean 2.2.8

Re: Django >=3 closes dev server when trying to log in in admin

2020-01-08 Thread Cristhiam Gabriel Fernández
Awesome! upgrade python to 3.8 and django works again 👏 Thank you so much El miércoles, 8 de enero de 2020, 11:30:18 (UTC-5), Jasim Ak escribió: > > Update your Python to version 3.8. > > Met with the same issue and this worked for me. > > On Wed, 8 Jan 2020, 21:43 Cristhiam

Re: Django >=3 closes dev server when trying to log in in admin

2020-01-08 Thread Cristhiam Gabriel Fernández
snt an error >> 😜 >> https://developer.mozilla.org/es/docs/Web/HTTP/Status/302 >> >> El dc., 8 de gen. 2020, 2:29, Cristhiam Gabriel Fernández < >> cristh...@gmail.com > va escriure: >> >>> Greetings >>> >>> From version 3 I

Re: Django >=3 closes dev server when trying to log in in admin

2020-01-08 Thread Cristhiam Gabriel Fernández
docs/Web/HTTP/Status/302 >> >> El dc., 8 de gen. 2020, 2:29, Cristhiam Gabriel Fernández < >> cristh...@gmail.com > va escriure: >> >>> Greetings >>> >>> From version 3 I'm getting this error. When I try log in in admin sit

Django >=3 closes dev server when trying to log in in admin

2020-01-07 Thread Cristhiam Gabriel Fernández
Greetings >From version 3 I'm getting this error. When I try log in in admin site django closes dev server with no error, only `"POST /admin/login/?next=/admin/ HTTP/1.1" 302 0`` Any suggestion? -- You received this message because you are subscribed to the Google Groups "Django users" gro

Custom authentication backend does not get credentials

2019-07-16 Thread Cristhiam Gabriel Fernández
Hi everyone My project uses two authentications ways for different users. Administrator users authenticate themselves with username and password (ModelBackend). Customers authenticate themselves with phonenumber and token (custom authentication backend). My custom backend authentication backe

Re: Testing - get_object_or_404 returns 200 status code

2019-06-10 Thread Cristhiam Gabriel Fernández
Hi RyuCoder Should not get_object_or_404 shortcut retry 404 status code? El lunes, 10 de junio de 2019, 15:29:24 (UTC-5), RyuCoder escribió: > > Whats your question? > I failed to understand that 😅 > > On Tue, Jun 11, 2019, 1:45 AM Cristhiam Gabriel Fernández < > cristh

Testing - get_object_or_404 returns 200 status code

2019-06-10 Thread Cristhiam Gabriel Fernández
Hi Django super heroes I'm making of test cases for my simple Django application. When I test a view with get_object_or_404 shortcut it returns 200 status code. def my_view(self, request): obj_id = request.POST.get('id') obj = get_object_or_404(MyModel, pk=id) # Test case ...data =