title: The view didn't return an HttpResponse object. It returned None instead, using Django
body: <p>So, I am trying to display a form into my html using Django, it has to be a form that creates a new page in the database.
  I am using ModelForm since I've read is the best way to provide the user with the tools to input data in the database. </p>
  
  <p>in views.py:</p>
  
  <pre><code>
         from django.shortcuts import redirect, render
         from django.http import HttpResponse
         from .models import Pages, PagesForm
         from django.contrib.auth.forms import UserCreationForm, AuthenticationForm
         from django.contrib.auth import login, logout, authenticate
         from django.contrib import messages
         from .forms import NewUserForm
  
  
  def homepage(request):
      return render(request = request,
                    template_name='main/home.html',
                    context = {})
  def pages(request):
      if request.method == "POST":
          form = PagesForm(request.POST)
          if form.is_valid():
              pass
              #nada, solo activa la validación
          else:
              form = PagesForm()    
              return render(request,
                          template_name='main/pages.html',
                          context = {"Pages":PagesForm.objects.all})
  
  </code></pre>
  
  <p>in models.py:</p>
  
  <pre><code>from django.db import models
  from datetime import datetime
  from django.forms import ModelForm
  # Create your models here.
  
  
  #Pages son entradas del diario
  class Pages(models.Model):
      title = models.CharField(max_length=300)
      content = models.TextField()
      author = models.CharField(max_length=50)
      published_date = models.DateTimeField("Published: ", default=datetime.now())
  
      def __str__(self):
          return self.title
  
  class PagesForm(ModelForm):
      class Meta:
          model = Pages
          fields = '__all__'  
  </code></pre>
  
  <p>in pages.html:</p>
  
  <pre><code>{% extends "main/header.html" %}
  
  
  {% block content %}
  &lt;div&gt;
    {% for page in Pages %}
    &lt;h2&gt;Display recent pages&lt;/h2&gt;
        &lt;div class="col s12 m6 l4"&gt;
          &lt;div class="card blue-grey darken-1"&gt;
            &lt;div class="card-content white-text"&gt;
              &lt;span class="card-title"&gt;{{page.title}}&lt;/span&gt;
              &lt;p&gt;{{page.published_date}}&lt;/p&gt;
              &lt;p&gt;{{page.author}}&lt;/p&gt;
              &lt;p&gt;{{page.content|safe}}&lt;/p&gt;
              &lt;div class="card-action"&gt;
                &lt;a href="#"&gt;Leer más&lt;/a&gt;
                &lt;/div&gt;
            &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
  
    {% endfor %}
  &lt;/div&gt;
  
  &lt;h2&gt;Create a new page&lt;/h2&gt;
  
  &lt;br&gt;
      &lt;form method="POST"&gt;
          {% csrf_token %}
          {{form.as_p}}
          &lt;button style="background-color:#F4EB16; color:blue" class="btn btn-outline-info" type="submit"&gt;Submit&lt;/button&gt;
      &lt;/form&gt;
  
  
  {% endblock %}
  
  </code></pre>
  
  <p>I would appreciate some help, thank you very much !</p>