from django.shortcuts import render_to_response, get_object_or_404
from django.template import RequestContext
from django.contrib.auth.decorators import login_required
from django.utils.translation import ugettext as _
from django.views.generic.list import ListView

from core.models import Account as User
from django_comments.models import Comment
from .models import ThreadedComment

def single_comment(request, id):
    comment = get_object_or_404(ThreadedComment, id=id)
    variables = RequestContext(request, {'comment': comment})
    return render_to_response('comments/single.html', variables)

def comment_posted( request ):
    if request.GET['c']:
        comment_id, feeditem_id  = request.GET['c'].split( ':' )
        feeditem = FeedItem.objects.get( pk=feeditem_id )

        if post:
            return HttpResponseRedirect( feeditem.get_absolute_url() )

    return HttpResponseRedirect( "/" )

    

from django.shortcuts import render_to_response, get_object_or_404
from django.template import RequestContext
from django.contrib.auth.decorators import login_required
from django.utils.translation import ugettext as _
from django.views.generic.list import ListView

from core.models import Account as User
from django_comments.models import Comment
from news.models import Blob, BlobInstance
from .models import ThreadedComment

def single_comment(request, id):
    comment = get_object_or_404(ThreadedComment, id=id)
    variables = RequestContext(request, {'comment': comment})
    return render_to_response('comments/single.html', variables)

def comment_posted( request ):
    if request.GET['c']:
        comment_id, blob_id  = request.GET['c'].split( ':' )
        blob = Blob.objects.get( pk=blob_id )

        if post:
            return HttpResponseRedirect( blob.get_absolute_url() )

    return HttpResponseRedirect( "/" )

Remove name, url and email from comment form
Remove name, url and email from comment form
