Re: Is it possible to use REST API on Django template ?

2020-11-26 Thread Venu Gopal
Yes, it is possible. Below is the documentation. we will use serialization to get a django rest API. https://docs.djangoproject.com/en/3.1/topics/serialization/ On Wed, Nov 25, 2020 at 7:48 PM Aman Modi wrote: > > > Hello Django lovers. > > I want to use REST API on Django template but i have

Exception Type: TemplateSyntaxError at /login/ Exception Value: Invalid block tag on line 23: 'csrf_tocken', expected 'endblock'. Did you forget to register or load this tag?

2020-11-26 Thread The Dream Travelers
hi friends, please help me to resolve this issue.. Environment: Request Method: GET Request URL: http://127.0.0.1:8000/login/ Django Version: 3.1.3 Python Version: 3.9.0 Installed Applications: ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes',

Unable to Login

2020-11-26 Thread vamshi eega
Hello , am new to Django and i created a login page ,but unable to get login , please help me to solve this , thank you in advance views.py : === from django.views import * from django.shortcuts import render, redirect from django.http import HttpResponse from django.contrib.auth