def display(request) : ''' func to display all the services ''' context = {} # debug() if request.method == 'GET' : author = AuthorForm() if request.method == 'POST' : debug() author = AuthorForm(request.POST) context['display_service'] = 'Services page goes here' context['author'] = author return render_to_response("services/display.html", context, RequestContext(request) )
def display(request): ''' func to display all the services ''' context = {} # debug() if request.method == 'GET': author = AuthorForm() if request.method == 'POST': debug() author = AuthorForm(request.POST) context['display_service'] = 'Services page goes here' context['author'] = author return render_to_response("services/display.html", context, RequestContext(request))
def clean(self): """ Validation form """ debug()