Re: Class Based View All Methods

2019-09-23 Thread Abu Yusuf
Most Welcome On Mon, Sep 23, 2019 at 4:03 PM Shakil Ahmmed wrote: > Thank You Bhaia <3 > > On Mon, Sep 23, 2019 at 4:02 PM Abu Yusuf > wrote: > >> yes, of course. see here: >> https://www.django-rest-framework.org/topics/html-and-forms/ >> >> >> On Mon, Sep 23, 2019 at 3:55 PM Shakil Ahmmed >>

Re: Class Based View All Methods

2019-09-23 Thread Shakil Ahmmed
Thank You Bhaia <3 On Mon, Sep 23, 2019 at 4:02 PM Abu Yusuf wrote: > yes, of course. see here: > https://www.django-rest-framework.org/topics/html-and-forms/ > > > On Mon, Sep 23, 2019 at 3:55 PM Shakil Ahmmed > wrote: > >> Can I Return Html Template From APIView ? >> >> On Monday, September 2

Re: Class Based View All Methods

2019-09-23 Thread Abu Yusuf
yes, of course. see here: https://www.django-rest-framework.org/topics/html-and-forms/ On Mon, Sep 23, 2019 at 3:55 PM Shakil Ahmmed wrote: > Can I Return Html Template From APIView ? > > On Monday, September 23, 2019 at 12:12:54 PM UTC+6, Shakil Ahmmed wrote: >> >> How Can i Use Those Methods

Re: Class Based View All Methods

2019-09-23 Thread Shakil Ahmmed
Can I Return Html Template From APIView ? On Monday, September 23, 2019 at 12:12:54 PM UTC+6, Shakil Ahmmed wrote: > > How Can i Use Those Methods In One Class Base View ['get', 'post', 'put', > 'patch', 'delete', 'head', 'options', 'trace'] > > Example: > > from django.views import View > > cla

Re: Class Based View All Methods

2019-09-23 Thread Shakil Ahmmed
Please Provide Me Some Code Example On Mon, Sep 23, 2019 at 3:47 PM laya Mahmoudi wrote: > Mixinviews can works for your purpose > > در تاریخ دوشنبه ۲۳ سپتامبر ۲۰۱۹،‏ ۱۱:۲۵ Shakil Ahmmed < > shakilfci...@gmail.com> نوشت: > >> Please Can You Give me some Exapmle? >> >> On Mon, Sep 23, 2019, 1:39

Re: Class Based View All Methods

2019-09-23 Thread Abu Yusuf
You can do that using ApiView also: details: https://www.django-rest-framework.org/tutorial/3-class-based-views/ class SnippetDetail(APIView): """ Retrieve, update or delete a snippet instance. """ def get_object(self, pk): try: return Snippet.objects.get(pk=pk)

Re: Class Based View All Methods

2019-09-23 Thread laya Mahmoudi
Mixinviews can works for your purpose در تاریخ دوشنبه ۲۳ سپتامبر ۲۰۱۹،‏ ۱۱:۲۵ Shakil Ahmmed < shakilfci...@gmail.com> نوشت: > Please Can You Give me some Exapmle? > > On Mon, Sep 23, 2019, 1:39 PM Abu Yusuf > wrote: > >> Check this: >> https://docs.djangoproject.com/en/2.2/ref/class-based-views/

Re: Class Based View All Methods

2019-09-23 Thread Shakil Ahmmed
Please Can You Give me some Exapmle? On Mon, Sep 23, 2019, 1:39 PM Abu Yusuf wrote: > Check this: > https://docs.djangoproject.com/en/2.2/ref/class-based-views/flattened-index/#formview > > On Mon, Sep 23, 2019 at 12:13 PM Shakil Ahmmed > wrote: > >> How Can i Use Those Methods In One Class Bas

Re: Class Based View All Methods

2019-09-23 Thread Abu Yusuf
Check this: https://docs.djangoproject.com/en/2.2/ref/class-based-views/flattened-index/#formview On Mon, Sep 23, 2019 at 12:13 PM Shakil Ahmmed wrote: > How Can i Use Those Methods In One Class Base View ['get', 'post', 'put', > 'patch', 'delete', 'head', 'options', 'trace'] > > Example: > > fr

Class Based View All Methods

2019-09-22 Thread Shakil Ahmmed
How Can i Use Those Methods In One Class Base View ['get', 'post', 'put', 'patch', 'delete', 'head', 'options', 'trace'] Example: from django.views import View class Home(View): def get(self, request, *args, **kwargs): return HttpResponse('Hello, World!') def post(self, request,