I created the form in django. Then i started the server but it is showing the following error when I do python manage.py runserver:
C:\Users\HP\Desktop\Projects\form_playground>python manage.py runserver
‘python’ is not recognized as an internal or external command,
operable program or batch file.
It is showing error in the following line:
def addstudent(request) :
studentform = forms.StudentForm()
if request.method="POST" :
studentform=forms.StudentForm(request.POST)
if studentform.is_valid():
student=studentform.save()
return HttpResponseRedirect('/students')
context ={
"studentform" :studentform
}
return render(request , 'addstudent.html' , context)
How to solve this error?