top of page

facebook-page-like-count-using-django-template-tag

Writer: Askao Ahmed SaadAskao Ahmed Saad

template-tag path:-

your_app/

`templatetags/`

   `__init__.py`

   `fb_like_count.py`

in your template you will load fb_like_count templete tag:-

{% load fb_like_count %}

and use it as the following:-

{% like_count page_name not_formatted|formatted %}

it takes 2 parameters:

1- pages_name as 'GitHub'

2- type of like count:

  not_formatted as '47600'

   formatted as '47.6K'

example:-

{% load fb_like_count %}

{% like_count GitHub not_formatted %}


 
 
 

Recent Posts

See All

django crud scaffolding script

scaffold (views actions, templates, model_forms, routes) code for your models by few django shell commands scaffold cruds for your models...

Comments


Post: Blog2_Post
bottom of page