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 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 new django project –
django-admin startproject fbcomm
Then write command –
create new app –
python manage.py startapp main
Folder Structure :-
Then add the app name in INSTALLED_APPS in settings.py .
Then create the new file in main folder and name it as urls.py
Go to Facebook comment plugin link and get the code of 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 as index.html
To run django app open cmd or terminal and write command
python manage.py runserver
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course.