regluit/frontend/views.py

19 lines
583 B
Python
Raw Normal View History

from django.template import RequestContext
from django.contrib.auth.models import User
from django.shortcuts import render_to_response, get_object_or_404
from regluit.core import models
def home(request):
return render_to_response('home.html',
{},
context_instance=RequestContext(request)
)
def contributor(request, contributor_username):
contributor = get_object_or_404(User, username=contributor_username)
return render_to_response('contributor.html',
{"contributor": contributor},
context_instance=RequestContext(request)
)