I need to know how I raise ValidationError of a validators in django.

First I tried the methode on form in simple page and forms and it works perfectly.

but the problems appear when I use modal fade class in a page works with pk

for example(127.0.0.1:8000/wsheets/AMA2/).

the message is
(The view Home.views.wellsets didn't return an HttpResponse object. It returned None instead.)

and mt views.wellsets is

```
def wellsets(request, WeelN):
    serchedWl = WellSheets.objects.filter(WellID__exact=WeelN)
    form= WelshetForm()
    context ={
        'title': 'SearchWS',
        'Wellslistsh':serchedWl,
        'WeelN':WeelN,
        'form':form,
    }
    if request.method == 'POST':
        form =WelshetForm(request.POST, request.FILES)
        if form.is_valid():
            form.instance.author = request.user
            form.save()
            return redirect('WellSheetg', WeelN)
    else:
        return render(request,'Home/WELLINFO/W_TchD/wellshts.html', context)

```

and my form + validator is:

```
from django.core.exceptions import ValidationError
class WelshetForm(forms.ModelForm):
    WellID   = forms.CharField(label='Well Name',max_length=15)
    FileNm   = forms.CharField(label='File Name',max_length=15)
    def clean_SHRPath(self):
        SHRPath = self.cleaned_data.get('SHRPath')
        size= SHRPath._size
        if SHRPath._size > 1024*1024*10:
            raise forms.ValidationError('Size is bigger than allowed')           
        return SHRPath

```

and at last this is my html form

```
<button type="button" class="btn button1 btn-outline-success mb-2 btn-block"  data-toggle="modal" data-target="#myModal" >
<p class="thicker">Add new Well-Sheet</p></button>

<div class="modal fade" id="myModal" role="dialog" >
  <div class="modal-dialog ">
    <div class="modal-content">
      <div class="modal-header">
        <h4 class="modal-title"><p class="thicker">Upload Well-sheet</p></h4>
          <button type="button" class="close" data-dismiss="modal">&times;</button>
      </div>

<div class="modal-body">
  <p class="thicker">Check your file before uploading ({{WeelN}})</p>
<div class="w3-panel w3-light-grey w3-round-large solid"">
  <form method="POST" id="formOne" enctype= multipart/form-data>
    {% csrf_token %}

      <div class="form-row">    
        <div class="form-group col-md-6 mb-0">
          {{ form.WellID|as_crispy_field }}  </div></div>      

      <div class="form-row">    
        <div class="form-group col-md-8 mb-0">
        {{ form.SHRPath }}</div></div>
        <p style="color:red;">Maximum upload size is 10Mb</p>
        <br>
      <input class="btn btn-success mb-6" name="form_uplod" type="submit" value="AddSheet">     
  </form>
</div>
    </div>
  </div>
    <div class="modal-footer">
    <button type="button" class="btn btn-default" data-dismiss="modal">Close</button></div>
</div>
</div>

```

[Modal form](https://i.stack.imgur.com/ZWP54.jpg)