Socket
Socket
Sign inDemoInstall

django-meta-pages

Package Overview
Dependencies
0
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    django-meta-pages

Django Library To Use Meta Tags And Schema Structure In Any URL Path


Maintainers
1

Readme

django-meta-pages

Django Library To Use Meta Tags And Schema Structure In Any URL Path

Step 1 Installation

first need install with pip

pip install django-meta-pages

Step 2 settings.py

First Add To INSTALLED_APPS

Next Step

Add To Templates context_processors


INSTALLED_APPS = [
    ...
    'meta_pages',
    ...
]

TEMPLATES = [
    {
      ...
        "OPTIONS": {
            "context_processors": [
                ...
                "meta_pages.context_processors.schema",
                "meta_pages.context_processors.meta",

            ],
        },
    },
]

Step 3

Include Meta Template To Your Base Template

<head>
{% include 'meta_pages/meta.html' with meta=meta %}
</head>

Step 4

python manage.py migrate

Done!

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc