Integrating Facebook Comments Plugin in Django Project
Django is a Python-based web framework that allows you to quickly create efficient web applications. It is also called batteries included framework because Django provides built-in features for everything including Django Admin Interface, default database – SQLlite3, etc. In this article, we will learn to integrate the Facebook comment plugin in Django.
How to integrate facebook comments plugin?
First, we have to install Django. Open cmd or terminal
pip install django
To create a new Django project –
django-admin startproject fbcomm
Then write command –
create a new app –
python manage.py startapp main
Then add the app name in INSTALLED_APPS in settings.py .
Then create the new file in the main folder and name it urls.py
Go to the Facebook comment plugin link and get the code of the comment plugin
Click on get code and copy that code
Inside main create the folder templates inside create another main folder
Then create the file and name it index.html
To run Django app open cmd or terminal and write command
python manage.py runserver