Exemple #1
0
def my_blogs(request):
    return render(
        request,
        'spudblog/my_blogs.html',
        {'blogs': db.get_blogs(request.user.id),
         'user_name': request.user.username})
Exemple #2
0
def blog_explorer(request):
    return render(
        request,
        'spudblog/blog_explorer.html',
        {'blogs': db.get_blogs()})