Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(3)  |  Derive(0)  |  Import(2)

src/a/r/archfinch-HEAD/comments/views.py   archfinch(Download)
from django.utils import simplejson
from lazysignup.decorators import allow_lazy_user
from archfinch.utils import render_to_response, form_error_msg
from archfinch.comments.models import AddCommentForm
from archfinch.main.models import Item
        else:
            if json:
                return_data['error_msg'] = form_error_msg(form.errors)
            else:
                return render_to_response('form_error.html', locals(), context_instance=RequestContext(request))

src/a/r/archfinch-HEAD/account/views.py   archfinch(Download)
from django.views.decorators.cache import never_cache
from django.utils import simplejson
from archfinch.utils import render_to_response, form_error_msg
from archfinch.main.models import Similarity
from archfinch.account.models import SignupForm, AuthenticationForm
 
        else:
            data['error_msg'] = form_error_msg(form.errors)
    else:
        data['error_msg'] = 'Wrong request method'
 
        else:
            data['error_msg'] = form_error_msg(form.errors)
 
    else: