How to disable django views in the browser

2021-03-10 Thread Mostapha Bouderka
Hi I'm working on a project with react and django; and want to use django views to be used as information source only and not show a page on the browser. For example, I have a pilot sign up page that uses a pilot create view to provide information to the pilot model. I want the users to be able

Re: How to disable django views in the browser

2021-03-10 Thread Mostapha Bouderka
ugh a browser, he either gets redirected to another page or gets an error message. On Wednesday, March 10, 2021 at 7:44:26 PM UTC Kasper Laudrup wrote: > On 10/03/2021 16.43, Mostapha Bouderka wrote: > > I'm working on a project with react and django; and want to use django >

Re: How to disable django views in the browser

2021-03-10 Thread Mostapha Bouderka
e . > > On Thu, Mar 11, 2021, 01:14 Kasper Laudrup wrote: > >> On 10/03/2021 16.43, Mostapha Bouderka wrote: >> > I'm working on a project with react and django; and want to use django >> > views to be used as information source only and not show a page

Re: How to disable django views in the browser

2021-03-10 Thread Mostapha Bouderka
er on all of the >>> views and viewsets, either overide that in settings, or use >>> renderer_classes=(JSONRendere,) in views in which yiu want to stop it. >>> >>> Search for BrowsableAPIRenderer. >>> >>> Ig you should have mentioned drf soone

Send_mail gives me a timeout error.

2021-05-05 Thread Mostapha Bouderka
Hi. I'm working on a project with django and django rest framework. In one of my views, I tried implementing a simple send_mail, but it always gives me a TimeOut error. I already configured the settings (Email backend as smtp, email host, password, ...), and also alowed my email to accept 'less s

Re: Send_mail gives me a timeout error.

2021-05-06 Thread Mostapha Bouderka
wrote: > Hi Mostapha, > > Thanks for taking your time to write a proper question with relevant > details. Not really related to the issue your facing, but a lot of > people could learn from that. > > Considering the error you're seeing: > > On 05/05/2021 23.53, M

Re: Send_mail gives me a timeout error.

2021-05-06 Thread Mostapha Bouderka
It returns a terminal with this at the top : '220 smtp.gmail.com ESMTP t8sm4659629wrs.25 - gsmtp' On Thursday, May 6, 2021 at 10:57:52 AM UTC Kasper Laudrup wrote: > On 5/6/21 11:57 AM, Mostapha Bouderka wrote: > > Hey Kasper, thanks for your reply. > > > > S

Re: Send_mail gives me a timeout error.

2021-05-06 Thread Mostapha Bouderka
Thanks Kasper, it works right now. I changed the port to '587', and now it works perfectly. Thank you for your assistance, and have a great day. On Thu, May 6, 2021 at 2:57 PM Mostapha Bouderka wrote: > It returns a terminal with this at the top : '220 smtp.gmail.com ESMTP &

Telnet problem

2021-05-27 Thread Mostapha Bouderka
Hi. I know this isn't django related but I searched everywhere and couldn't find any help. The issue is, in order to send emails using smtp (or even django's send_mail), I had to initiate " telnet smtp.gmail.com 587 ", which worked for a while, but now I can't get it to work. When I type this c

Re: Telnet problem

2021-05-27 Thread Mostapha Bouderka
il service as a smarthost >> (at least not so with free accounts). Therefore some things may be working >> for a time and then they might stop working. >> >> Antonis Christofides >> +30-6979924665 (mobile) >> >> >> On 27/05/2021 14.27, Mostapha