Thank You Bhaia <3 On Mon, Sep 23, 2019 at 4:02 PM Abu Yusuf <yu...@binate-solutions.com> 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 <shakilfci...@gmail.com> > 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 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 django-users+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/7aada502-1f1c-4eef-b4ba-70dcc4bee3ec%40googlegroups.com >> <https://groups.google.com/d/msgid/django-users/7aada502-1f1c-4eef-b4ba-70dcc4bee3ec%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 django-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CACNsr2-pd_MeLdkCqpDP3ARLE_0sWWoVywv1pVw64sv2-ZH17g%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CACNsr2-pd_MeLdkCqpDP3ARLE_0sWWoVywv1pVw64sv2-ZH17g%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- <https://about.me/shakilahmmed?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb> Shakil Ahmmed about.me/shakilahmmed <https://about.me/shakilahmmed?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb> -- 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 django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BEpJfzP24WT1DCnaVRn3WjsV-AHwMVK9%2BiLokWg_2x5pBrtwg%40mail.gmail.com.