Won't you end up stopping multipart requests in that case?
On Thu, Mar 11, 2021, 02:36 Ryan Nowakowski wrote:
> On Wed, Mar 10, 2021 at 07:43:55AM -0800, Mostapha Bouderka wrote:
> > I'm working on a project with react and django; and want to use django
> > views to be used as information
On Wed, Mar 10, 2021 at 07:43:55AM -0800, 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 on the
> browser. For example, I have a pilot sign up page that uses a pilot create
>
Alright i'll check it right now
Many thanks for the assistance.
On Wednesday, March 10, 2021 at 8:15:08 PM UTC kunalsol...@gmail.com wrote:
> Also you will need to add allowed hosts in djnago settung to stop requests
> from untrusted origins
>
> On Thu, Mar 11, 2021, 01:43 Kunal Solanke
Also you will need to add allowed hosts in djnago settung to stop requests
from untrusted origins
On Thu, Mar 11, 2021, 01:43 Kunal Solanke
wrote:
> By doing this you won't be able to stop the get requests from browser, but
> post requests can be stopped.
>
> On Thu, Mar 11, 2021, 01:42 Kunal
By doing this you won't be able to stop the get requests from browser, but
post requests can be stopped.
On Thu, Mar 11, 2021, 01:42 Kunal Solanke
wrote:
> Ok in that case, drf by default sets a browsableapi render on all of the
> views and viewsets, either overide that in settings, or use
>
Ok in that case, drf by default sets a browsableapi render 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 sooner.
On Thu, Mar
I'am using the django rest framework
On Wednesday, March 10, 2021 at 8:01:26 PM UTC kunalsol...@gmail.com wrote:
> Idk the overall use case here ,
> But if the prject is reasonably bigger and you want to use class based
> views, I'd suggest you to use drf.
> But you if you don't want to use
Thanks for the reply.
However, your answer didn't really solve my issue.
The form i mentioned is just an example, in fact i have other views,. The
issue is that i want those views to only handle information and send them
bach to the front end, but if a user tries to access them through a
Please ignore typos.
On Thu, Mar 11, 2021, 01:30 Kunal Solanke
wrote:
> Idk the overall use case here ,
> But if the prject is reasonably bigger and you want to use class based
> views, I'd suggest you to use drf.
> But you if you don't want to use that,you will have to overide most to the
>
Idk the overall use case here ,
But if the prject is reasonably bigger and you want to use class based
views, I'd suggest you to use drf.
But you if you don't want to use that,you will have to overide most to the
CBV given by djnango as most of them expect a success url or a template
that they
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 on the
browser. For example, I have a pilot sign up page that uses a pilot
create view to provide information to
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
12 matches
Mail list logo