To add 3rd-party module to Django

For example, use pip install django-disqus install the disqus app first.

Then, edit the settings.py of the project:

# Application definition

INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.admindocs',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',

    # to add site modules, must add the following line first
    # and set SITE_ID=1
    'django.contrib.sites',
    #'disqus',

    # all my apps
    'myapp',
    'books',
]
SITE_ID = 1