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
>>
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
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
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
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
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)
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/
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
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
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,
10 matches
Mail list logo