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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.