Re: Approach to implement a Rest call functionality

2018-11-20 Thread prateek gupta
Got it, I will try to do the same. On Tuesday, November 20, 2018 at 6:12:20 PM UTC+5:30, Yavin Aalto Arba wrote: > > Not sure if we're a bit confused on the use case here. REST framework is a > server side platform which can help you implement apis fast, it's a good > idea to use if you don't

Re: Approach to implement a Rest call functionality

2018-11-20 Thread prateek gupta
Hi @MTS S BOUR, I am not using forms.pr currently. These forms fields are from models.py only. That's I w had not thought about html form. On Tuesday, November 20, 2018 at 5:18:54 PM UTC+5:30, MTS BOUR wrote: > > I didn't really understand what you mean, why not use method Post in a > boutton

Re: Approach to implement a Rest call functionality

2018-11-20 Thread Yavin Aalto Arba
Not sure if we're a bit confused on the use case here. REST framework is a server side platform which can help you implement apis fast, it's a good idea to use if you don't have an endpoint and want fast CRUD implementation. As for having a button on the client side - you can use HTML forms or

Re: Approach to implement a Rest call functionality

2018-11-20 Thread prateek gupta
Thanks @Yavin for your suggestion. I thought I will have to use Django Rest Framework for this functionality, never thought that from front end I can do that :) On Tuesday, November 20, 2018 at 5:17:35 PM UTC+5:30, Yavin Aalto Arba wrote: > > Hi Prateek, > > I think your best option is using

Re: Approach to implement a Rest call functionality

2018-11-20 Thread MTS BOUR
I didn't really understand what you mean, why not use method Post in a boutton in an Html form ? Le mar. 20 nov. 2018 à 12:24, prateek gupta a écrit : > Hi All, > > I have an admin panel built on Django 2.0.6, MySql 5.7 and Python 3.6. > > In this panel I have a field 'PIN' described in

Re: Approach to implement a Rest call functionality

2018-11-20 Thread Yavin Aalto Arba
Hi Prateek, I think your best option is using javascript on the front end - leveraging an ajax post call. On Tue, 20 Nov 2018 at 13:24, prateek gupta wrote: > Hi All, > > I have an admin panel built on Django 2.0.6, MySql 5.7 and Python 3.6. > > In this panel I have a field 'PIN' described in

Approach to implement a Rest call functionality

2018-11-20 Thread prateek gupta
Hi All, I have an admin panel built on Django 2.0.6, MySql 5.7 and Python 3.6. In this panel I have a field 'PIN' described in models.py like below- class MerchantStores(models.Model): store_id = models.AutoField(primary_key=True) pin = models.CharField(unique=True, max_length=45,