title: Django form fields not loading in template
body: <p>I can't seem to get a model form to load in my template.</p>
  
  <p>models.py</p>
  
  <pre><code>from django.db import models
  
  class Event(models.Model):
      name = models.CharField(max_length=60)
      start_datetime = models.DateTimeField()
      end_datetime = models.DateTimeField()
      description = models.TextField()
  </code></pre>
  
  <p>forms.py</p>
  
  <pre><code>from django import forms
  from .models import Event
  
  class EventForm(forms.ModelForm):
      class Meta:
          model = Event
          fields = ['name']
  </code></pre>
  
  <p>views.py</p>
  
  <pre><code>from django.shortcuts import render
  from .forms import EventForm
  
  def index(request):
      if request.method == 'POST':
          form = EventForm(request.POST)
          if form.is_valid():
              form.save()
      else:
          form = EventForm()
  
      return render(request, 'index.html')
  </code></pre>
  
  <p>index.html</p>
  
  <pre><code>&lt;form method="POST" action=""&gt;
    {% csrf_token %}
    {{ form.as_p }}
  &lt;/form&gt;
  &lt;button type="submit"&gt;Save&lt;/button&gt;
  </code></pre>
  
  <p>I can get the form to print to the console on load when adding print(form) in views.py on the GET request, but it doesn't load in the template.</p>