New 1.0.0 Install, No Meta Tags Rendered (meta is empty)
See original GitHub issueGoal
- Primarily, only one feature from this plugin:
- “Twitter cards, Open Graph and Google+ snippets meta tags”
- Possibly, other features from this plugin.
Problem
- The
{% include "meta/meta.html" %}
(in mybase.html
) does not render anything. - The
meta
variable is empty. Tested via:{% debug %}
in my site’sbase.html
template{% debug %}
in/usr/local/lib/python3.6/site-packages/meta/templates/meta/meta.html
- I am new to much of Python, Django, and Django CMS.
Notes
- This plugin supports the desired feature via
django-meta
, which does not officially support Django 3.1+. - All other basic blog features seem to be working.
Environment
- OS Name: Linux (via Docker Image
python:3.6-buster
) - OS Version: Unknown
- Python Version:
3.6.10
- Django CMS Version:
3.6.0
Installation
requirements.txt
...
djangocms-blog==1.0.0
...
settings.py
...
'filer',
'easy_thumbnails',
…
# Support `djangocms-blog`
# 'filer', # Already added
# 'easy_thumbnails', # Already added
'aldryn_apphooks_config',
'parler',
'taggit',
'taggit_autosuggest',
'meta',
'sortedm2m',
'djangocms_blog',
...
urls.py
...
# Support `djangocms-blog`
urlpatterns += [
url(r'^taggit_autosuggest/', include('taggit_autosuggest.urls')),
]
...
base.html
{% load cms_tags staticfiles menu_tags sekizai_tags meta cache i18n %}
<!doctype html>
<html>
<head {% meta_namespaces %}>
<title>{% block title %}This is my new project home page{% endblock title %}</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
{% include "meta/meta.html" %}
<link rel="icon" href="{% static 'site_cms/images/favicons/favicon.ico' %}" type="image/x-icon" />
...
</head>
...
Runtime
{% debug %}
This is just the beginning of the output from a test blog page.
{'cms_edit_off': 'edit_off', 'cms_edit_on': 'edit', 'cms_renderer': , 'cms_structure_on': 'structure', 'cms_toolbar': , 'cms_version': '3.6.0', 'django_version': '1.11.22', 'login_form': , 'python_version': '3.6.10'}{'instant_article': False, 'meta': , 'object': , 'post': , 'use_placeholder': True, 'view': }{}{'CMS_MEDIA_URL': '/media/cms/', 'CMS_TEMPLATE': . at 0x7faf58478c80> …
Blog Config
- It is the default automatic entry.
- I have added useless values to the “Open Graph”, “Twitter”, and “Google+” entries, like
FB_APP_ID
,TW_AUTHOR_HANDLE
, etc.
Blog Category/Post
- Inside a solitary test category with descriptive test text for all text entry fields.
- A default blog page with descriptive test text for all text entry fields.
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
djangocms-blog Documentation
Setup social metatags rendering djangocms-blog implements django-meta and it come ready to provide a fairly complete social meta tags set.
Read more >How Does the Meta Block in Base Template Work? #613
Description I am confused by purpose of the meta block in base.html template code. ... New 1.0.0 Install, No Meta Tags Rendered (meta...
Read more >yarn build shows empty page when building my react app?
If you open it directly in the browser, you will see an empty page. You can add webfonts, meta tags, or analytics to...
Read more >Introducing React-Helmet-Async | by Scott Taylor | NYT Open
React Helmet (react-helmet on npm) is a fantastic library for managing your app's <head> tags from within your React component tree.
Read more >Adding CSS & JS and Overriding the Page-Load Template
Learn how to add custom CSS and JS to your app as well as how to customize the HTML title, meta tags, and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you for your patience. I was multitasking on too many issues, and did not confirm that I had followed all the setup steps. (I was missing the
{% include "meta/meta.html" %}
, this time, and confused by newly-reported issue #613).@tacc-wbomar yay! Hopefully this project will be useful for you and your team 🎉 We’d love to hear feedback from you 😃
Thanks for the time spent reporting this issue and checking it