-
Add "metatags" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [ ... 'metatags', ] -
Run
python manage.py migrateto create the models. -
Load metatags templates tags in base.html::
{% load metatags %} -
Add metatags tag in head of base.html or any page where you want to add meta tags to.
<head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> {% metatags request.path %} <title>Document</title> </head> -
Visit http://127.0.0.1:8000/admin/metatags/metatag/ to add meta tags.
-
In slug add some unique feature of url.
-
Enjoy!
-
Notifications
You must be signed in to change notification settings - Fork 0
A Django app to add meta tags to any page of your website.
License
Hardeepsingh980/django_simple_metatags
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
A Django app to add meta tags to any page of your website.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published