title: How to return an HttpResponse object instead of None
body: <p>can you help me out through this problem?, I'm a beginner and trying to learn django..even tho i tried so many other ways but it just wont work out. i hope you can help me</p>
  <p><strong>models.py</strong></p>
  <pre><code>from django.db import models
  from django.db.models.fields import CharField , IntegerField, EmailField
  
  
  class Member(models.Model):
      first_name = models.CharField(max_length=100)
      last_name = models.CharField(max_length=50) 
      email = models.EmailField()
      age = models.IntegerField()
      password =  models.CharField(max_length=100,null=True)
  
  
      def __str__(self):
          return self.first_name + &quot; &quot; + self.last_name
  </code></pre>
  <p><strong>form.py</strong></p>
  <pre><code>from django.db.models import fields
  from django.forms import ModelForm
  from django import forms
  from .models import Member
  
  
  
  class MemberForm(forms.ModelForm):
      class Meta:
          model = Member
          fields = [&quot;first_name&quot;, &quot;last_name&quot;, &quot;age&quot;, &quot;email&quot;, &quot;password&quot;]
  </code></pre>
  <p><strong>views.py</strong></p>
  <pre><code>from django.shortcuts import  render
  from .models import Member
  from .form import MemberForm
  # Create your views here.
  
  
  
  
  def join(request):
      if request.method == &quot;POST&quot;:
          form = MemberForm(request.POST or None)
          if form.is_valid():
              form.save()
              return render(request, &quot;HTML/join.html&quot;,{})
  
      else:
          form = MemberForm()
          return render(request, &quot;HTML/join.html&quot;,{})
  
  </code></pre>
  <p><strong>error</strong></p>
  <pre><code>The view myapp.views.join didn't return an HttpResponse object. It returned None instead.
  </code></pre>