
Security News
New CVE Forecasting Tool Predicts 47,000 Disclosures in 2025
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
django-simple-open-graph
Advanced tools
Django package for simplicity embed open graph (og:) layout in templates for different objects
Django package for simplicity embed open graph (og:) layout in templates for different objects
If you use many different objects and you need embed open-graph (e.g. fb: for facebook) layout for all pages in site.
This package help you! 
āāā āāā āāā āāāāā āāā āāā
You can install from PyPI::
$ pip install django-simple-open-graph==0.1
And add simple_open_graph
in your INSTALLED_APPS
.
Add og namespace in your base template::
<html prefix="og: http://ogp.me/ns#">
or for facebook::
<html xmlns:fb="http://ogp.me/ns/fb#" lang="en">
And add block in base template::
<head>
...
{% block extra_head %}{% endblock %}
...
</head>
Aaand! You can use this package in different templates::
{% load simple_open_graph %}
{% block extra_head %}
{% thumbnail object.user.image 150x150 as uimage %} <!-- as example for use easy_thumbnails package -->
{% opengraph_meta "url=object.get_absolute_url, title=object.title, type='website', image=uimage.url" %}
{% endblock %}
This tag converted in meta html properties::
<meta property="og:url" content="/users/1">
<meta property="og:image" content="/media/thumbnails/users/person1.jpg.150x150_q85.jpg">
<meta property="og:type" content="website">
<meta property="og:title" content="Profile: user #1">
Excellent!
The Open Graph protocol <http://ogp.me/>
_Facebook Debugger <http://developers.facebook.com/tools/debug>
_Initial release.
FAQs
Django package for simplicity embed open graph (og:) layout in templates for different objects
We found that django-simple-open-graph demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Ā It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.