Example #1
0
def read(request):
    sites = subscription.get_all_sites()
    items = subscription.get_latest_items(100)
    cates = subscription.get_cates()
    return render(request, 'read.html', {'sites': sites, 'cates': cates})
Example #2
0
def lab(request):
    # subscription.start()
    sites = subscription.get_all_sites()
    return render(request, 'lab.html', {'sites': sites, 'range': xrange(0, 10)})