2011-09-04 04:21:51 +00:00
|
|
|
from django.template import RequestContext
|
2011-09-12 05:53:54 +00:00
|
|
|
from django.contrib.auth.models import User
|
|
|
|
from django.shortcuts import render_to_response, get_object_or_404
|
2011-08-31 03:46:55 +00:00
|
|
|
|
2011-09-12 03:44:21 +00:00
|
|
|
from regluit.core import models
|
|
|
|
|
2011-08-31 03:46:55 +00:00
|
|
|
def home(request):
|
2011-09-04 04:21:51 +00:00
|
|
|
return render_to_response('home.html',
|
2011-09-12 05:53:54 +00:00
|
|
|
{},
|
2011-09-12 03:44:21 +00:00
|
|
|
context_instance=RequestContext(request)
|
|
|
|
)
|
|
|
|
|
2011-09-12 15:23:33 +00:00
|
|
|
def contributor(request, contributor_username):
|
|
|
|
contributor = get_object_or_404(User, username=contributor_username)
|
|
|
|
return render_to_response('contributor.html',
|
|
|
|
{"contributor": contributor},
|
2011-09-04 04:21:51 +00:00
|
|
|
context_instance=RequestContext(request)
|
|
|
|
)
|