title: Django UpdateView returns a blank rendered template
body: <p>I am using django allauth for user authentication, in my adapter I have modified the <code>get_login_redirect_url</code> to redirect
  new users to an <code>ONBOARD_URL</code> so they can complete registration process while regular users get the expected <code>LOGIN_REDIRECT_URL</code></p>
  <pre><code>class UserAccountAdapter(DefaultAccountAdapter):
      def get_login_redirect_url(self, request):
          if request.user.is_authenticated and (not request.user.name or not request.user.avatar
                                                or not request.user.mobile):
              url = settings.ONBOARD_URL
          else:
              url = settings.LOGIN_REDIRECT_URL
          return resolve_url(url)
  </code></pre>
  <p>I have two functions handling the view and they both inherit from <code>UpdateView</code> and <code>DetailView</code> respectively.</p>
  <pre><code>class UpdateUserAfterSignupView(LoginRequiredMixin, UpdateView):
      model = User
      form_class = UpdateUserAfterSignupForm
      template_name = 'users/user_form.html'
      context_object_name = 'user'
      success_url = reverse_lazy('users:detail')
  </code></pre>
  <pre><code>class UserDetailView(LoginRequiredMixin, DetailView):
      model = User
      slug_field = 'username'
      slug_url_kwarg = 'username'
      template_name = 'users/user_detail.html'
      context_object_name = 'user'
  
      def get_object(self, queryset=None):
          return get_object_or_404(self.model, username=self.request.user.username)
  </code></pre>
  <p>In my <code>DetailView</code>, if i leave out the <code>get_object</code> it returns a <code>PageNotFound 404</code>, but when its present as is, I get a blank page
  in the rendered template. This is the template:</p>
  <pre><code>{% extends 'base.html' %}
  {% block content %}
  &lt;p&gt;welcome {{user}}&lt;/p&gt;
  &lt;form action=&quot;&quot; method=&quot;post&quot; enctype=&quot;multipart/form-data&quot;&gt;{% csrf_token %}
      {{ form.as_p }}
      &lt;button type=&quot;submit&quot; value=&quot;submit&quot;&gt;submit&lt;/button&gt;
  &lt;/form&gt;
  {% endblock %}
  </code></pre>
  <p>and my url conf looks like this</p>
  <pre><code>[
      path('&lt;str:username&gt;/', views.UserDetailView.as_view(), name='detail'),
      path('complete-signup/', views.UpdateUserAfterSignupView.as_view(), name='complete_signup'),
  ]
  </code></pre>
  <p>Again, all of these results in a blank rendered template, nothing at all. Could you please suggest things I should do
  differently, or add. I can provide more information as required. Thank you</p>
  <p><strong>EDIT</strong></p>
  <p><code>DetailView</code> template looks like this:</p>
  <pre><code>{% extends 'base.html' %}
  {% block content %}
  &lt;p&gt;{{user.name}}&lt;/p&gt;
  {% if user.avatar %}
  &lt;p&gt;&lt;img src=&quot;{{ user.avatar.url }}&quot; alt=&quot;&quot;&gt;&lt;/p&gt;
  {% endif %}
  &lt;p&gt;{{ user.mobile }}&lt;/p&gt;
  {% endblock %}
  </code></pre>
  <p>and my base template looks like this:</p>
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang=&quot;en&quot;&gt;
  &lt;head&gt;
      &lt;meta charset=&quot;UTF-8&quot;&gt;
      &lt;title&gt;Title&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      {% block content %}
      {% endblock %}
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  <p><strong>EDIT 2</strong>
  My template dir settings looks like this:</p>
  <pre><code>'DIRS': [
              os.path.join(BASE_DIR / 'templates'),
              os.path.join(BASE_DIR / 'auth_templates'),
          ],
  </code></pre>