title: From views, how do I pass both context and registration form to my registration template?
body: <p>I'm fairly new to Django and I'm trying to pass both the context and my registration form. I know how to pass either the context, or the form, but not both. Check the last line of the code, that's what I'm trying to figure out.</p>
  
  <p>I've tried:<br>
  <strong>return render(request, 'users/register.html', context, {'form': form})<br></strong>
  and it doesn't work. There's something wrong with the syntax.</p>
  
  <pre><code>from django.shortcuts import render, redirect
  from django.contrib import messages
  from .forms import UserRegisterForm
  
  def register(request):
      context = {
          'title': "Register",
          'page_title': "Golf App - Register",
          'login_title': "Login"
      }
      if request.method == 'POST':
          form = UserRegisterForm(request.POST)
          if form.is_valid():
              form.save()
              username = form.cleaned_data.get('username')
              messages.success(request, f'Account Created for {username}!')
              return redirect('golf-home')
      else:
          form = UserRegisterForm()
      return render(request, 'users/register.html', {'form': form})
  </code></pre>
  
  <p>I'm trying to get it so that I can use both the context and form in the template.</p>