Ajax form not sending data in django
Ajax form not sending data in django Question: I am trying to send data to Django without page refresh. So I am using ajax. Created a Django model and form class MyModel(models.Model): text=models.CharField(max_length=100) class MyForm(forms.ModelForm): class Meta: model=MyModel fields = "__all__" Then send the form to the HTML page via views.py def home(request): print(request.POST.get(‘text’,False)) form …