Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

page views count django

def blog_post(request,post_id):
    #your code
    blog_object=Blog.objects.get(id=post_id)
    blog_object.blog_views=blog_object.blog_views+1
    blog_object.save()
    #your code
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #page #views #count #django
ADD COMMENT
Topic
Name
7+3 =