from mysite.search.models import Project

from django.http import HttpResponse, HttpResponseRedirect, HttpResponseServerError
from django.shortcuts import render_to_response, get_object_or_404, get_list_or_404

def project(request, project__name = None):
    p = Project.objects.get(name=project__name)
    return render_to_response('project/project.html',
            {
                'the_user': request.user,
                'project': p,
                'contributors': p.get_contributors()
                }
            )

from mysite.search.models import Project
import django.template
import mysite.base.decorators

from django.http import HttpResponse, HttpResponseRedirect, HttpResponseServerError
from django.shortcuts import render_to_response, get_object_or_404, get_list_or_404

@mysite.base.decorators.view
def project(request, project__name = None):
    p = Project.objects.get(name=project__name)
    return (request,
            'project/project.html',
            {
                'project': p,
                'contributors': p.get_contributors()
                },
            )

Use the @view decorator to ensure that the project page gets user data.
Use the @view decorator to ensure that the project page gets user data.

  from mysite.search.models import Project
+ import django.template
+ import mysite.base.decorators
  
  from django.http import HttpResponse, HttpResponseRedirect, HttpResponseServerError
  from django.shortcuts import render_to_response, get_object_or_404, get_list_or_404
  
+ @mysite.base.decorators.view
  def project(request, project__name = None):
      p = Project.objects.get(name=project__name)
-     return render_to_response('project/project.html',
+     return (request,
+             'project/project.html',
              {
-                 'the_user': request.user,
                  'project': p,
                  'contributors': p.get_contributors()
-                 }
+                 },
              )
  
Use the @view decorator to ensure that the project page gets user data.
## Code Before:
from mysite.search.models import Project

from django.http import HttpResponse, HttpResponseRedirect, HttpResponseServerError
from django.shortcuts import render_to_response, get_object_or_404, get_list_or_404

def project(request, project__name = None):
    p = Project.objects.get(name=project__name)
    return render_to_response('project/project.html',
            {
                'the_user': request.user,
                'project': p,
                'contributors': p.get_contributors()
                }
            )

## Instruction:
Use the @view decorator to ensure that the project page gets user data.
## Code After:
from mysite.search.models import Project
import django.template
import mysite.base.decorators

from django.http import HttpResponse, HttpResponseRedirect, HttpResponseServerError
from django.shortcuts import render_to_response, get_object_or_404, get_list_or_404

@mysite.base.decorators.view
def project(request, project__name = None):
    p = Project.objects.get(name=project__name)
    return (request,
            'project/project.html',
            {
                'project': p,
                'contributors': p.get_contributors()
                },
            )
