Mixinviews can works for your purpose در تاریخ دوشنبه ۲۳ سپتامبر ۲۰۱۹، ۱۱:۲۵ Shakil Ahmmed < [email protected]> نوشت:
> Please Can You Give me some Exapmle? > > On Mon, Sep 23, 2019, 1:39 PM Abu Yusuf <[email protected]> > 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 <[email protected]> >> 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 >>> >>> class Home(View): >>> def get(self, request, *args, **kwargs): >>> >>> return HttpResponse('Hello, World!') >>> >>> def post(self, request, *args, **kwargs): >>> >>> return HttpResponse('Hello, World!') >>> >>> >>> def put(self, request, *args, **kwargs): >>> >>> return HttpResponse('Hello, World!') >>> >>> >>> def delete(self, request, *args, **kwargs): >>> >>> return HttpResponse('Hello, World!') >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Django users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/django-users/2cbd1753-d7d3-40d2-9d47-e935d0e3d75f%40googlegroups.com >>> <https://groups.google.com/d/msgid/django-users/2cbd1753-d7d3-40d2-9d47-e935d0e3d75f%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/CACNsr2-Y7bPvDmCYRdLiZf5vVDbs6tX4EABF5HGzDUt3wvOjLA%40mail.gmail.com >> <https://groups.google.com/d/msgid/django-users/CACNsr2-Y7bPvDmCYRdLiZf5vVDbs6tX4EABF5HGzDUt3wvOjLA%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CA%2BEpJfxOrX0thTdb%3DoikwmTyGYCGVo4zdbGyA6UxvvyV3E7TLg%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CA%2BEpJfxOrX0thTdb%3DoikwmTyGYCGVo4zdbGyA6UxvvyV3E7TLg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABL_bk2poNSOa0ajfM3NP1XOSg_5T8R3NZHYN%2BtGfGd_cWrRxQ%40mail.gmail.com.

