Skip to main content

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

Project description

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!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-meta-pages-0.0.1.tar.gz (5.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page