# -*- coding: utf-8 -*-
from django.shortcuts import get_object_or_404, render, redirect,render_to_response
from django.http import HttpResponse,HttpResponseRedirect
from django.template import RequestContext,loader,Context
from OneXiao.models import OneXiao
import random
# Create your views here.

def one(request):
    text= OneXiao.objects.all()
    if text:
    	two=random.choice(text)
    	one=two.wenben
    else:
    	one="no funny"
    return HttpResponse(one)

