question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New 1.0.0 Install, No Meta Tags Rendered (meta is empty)

See original GitHub issue

Goal

  1. Primarily, only one feature from this plugin:
    • “Twitter cards, Open Graph and Google+ snippets meta tags”
  2. Possibly, other features from this plugin.

Problem

  1. The {% include "meta/meta.html" %} (in my base.html) does not render anything.
  2. The meta variable is empty. Tested via:
    • {% debug %} in my site’s base.html template
    • {% debug %} in /usr/local/lib/python3.6/site-packages/meta/templates/meta/meta.html
  3. I am new to much of Python, Django, and Django CMS.

Notes

Environment

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:closed
  • Created 3 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
wesleyboarcommented, Jun 25, 2020

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).

1reaction
yakkycommented, May 4, 2020

@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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found