{"id":19041172,"url":"https://github.com/ricardochaves/django_ogp","last_synced_at":"2026-04-18T10:37:53.915Z","repository":{"id":33111459,"uuid":"151487909","full_name":"ricardochaves/django_ogp","owner":"ricardochaves","description":"A more dynamic way to register Open Graph protocol","archived":false,"fork":false,"pushed_at":"2021-12-20T20:12:12.000Z","size":59,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-07T01:30:47.841Z","etag":null,"topics":["django","open-graph-protocol"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ricardochaves.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-03T22:19:06.000Z","updated_at":"2019-10-23T15:06:38.000Z","dependencies_parsed_at":"2022-07-16T05:00:40.414Z","dependency_job_id":null,"html_url":"https://github.com/ricardochaves/django_ogp","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/ricardochaves/django_ogp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ricardochaves%2Fdjango_ogp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ricardochaves%2Fdjango_ogp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ricardochaves%2Fdjango_ogp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ricardochaves%2Fdjango_ogp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ricardochaves","download_url":"https://codeload.github.com/ricardochaves/django_ogp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ricardochaves%2Fdjango_ogp/sbom","scorecard":{"id":774908,"data":{"date":"2025-08-11","repo":{"name":"github.com/ricardochaves/django_ogp","commit":"1f2586590f2fcdca65a0d23b88cc486d309bdca1"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.1,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":8,"reason":"Found 4/5 approved changesets -- score normalized to 8","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 29 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T03:18:02.092Z","repository_id":33111459,"created_at":"2025-08-23T03:18:02.092Z","updated_at":"2025-08-23T03:18:02.092Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275135796,"owners_count":25411706,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-14T02:00:10.474Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","open-graph-protocol"],"created_at":"2024-11-08T22:27:37.886Z","updated_at":"2026-04-18T10:37:48.874Z","avatar_url":"https://github.com/ricardochaves.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# django_ogp\n\n[![Build Status](https://travis-ci.org/ricardochaves/django_ogp.svg?branch=master)](https://travis-ci.org/ricardochaves/django_ogp) [![Coverage Status](https://coveralls.io/repos/github/ricardochaves/django_ogp/badge.svg)](https://coveralls.io/github/ricardochaves/django_ogp) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/3a1363cd34274377942b34418ed2b00a)](https://app.codacy.com/app/ricardochaves/django_ogp?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=ricardochaves/django_ogp\u0026utm_campaign=Badge_Grade_Dashboard) [![Maintainability](https://api.codeclimate.com/v1/badges/a2af8f7a30ad3bee2cac/maintainability)](https://codeclimate.com/github/ricardochaves/django_ogp/maintainability) [![Updates](https://pyup.io/repos/github/ricardochaves/django_ogp/shield.svg)](https://pyup.io/repos/github/ricardochaves/django_ogp/) [![Python 3](https://pyup.io/repos/github/ricardochaves/django_ogp/python-3-shield.svg)](https://pyup.io/repos/github/ricardochaves/django_ogp/) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black) [![Packagist](https://img.shields.io/packagist/l/doctrine/orm.svg)](https://github.com/ricardochaves/django_ogp/blob/master/LICENSE) [![PyPI version](https://badge.fury.io/py/django-ogp.svg)](https://badge.fury.io/py/django-ogp) [![Downloads](https://pepy.tech/badge/django-ogp)](https://pepy.tech/project/django-ogp) [![Downloads](https://pepy.tech/badge/django-ogp/month)](https://pepy.tech/project/django-ogp) [![Downloads](https://pepy.tech/badge/django-ogp/week)](https://pepy.tech/project/django-ogp) [![Say Thanks!](https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg)](https://saythanks.io/to/ricardochaves)\n\nA more dynamic way to register Open Graph protocol\n\n## Why\n\nThis app is made to facilitate the SEO of *OnePage* sites. With it you will have an administrative ready to register the metas or if you prefer to include a dictionary in your `settings.py` with the values that must be loaded.\n\nIf there is a dictionary in the settings it will not use the database and you can hide the users' [OPG](http://ogp.me/) registration by the access level of the user/group.\n\nNow you can create [OGPs](http://ogp.me/) in an easy way.\n\n## Suported\n\nThe test matrix guarantees coverage for:\n\n- pythos2·7 : Django 1.8\n- pythos2·7 : Django 1.11\n- pythos3·4 : Django 1.8\n- pythos3·4 : Django 1.9\n- pythos3·4 : Django 1.11\n- pythos3·5 : Django 1.8\n- pythos3·5 : Django 1.9\n- pythos3·5 : Django 1.11\n- pythos3·5 : Django 2.0\n- pythos3·5 : Django 2.1\n- pythos3·6 : Django 1.8\n- pythos3·6 : Django 1.9\n- pythos3·6 : Django 1.11\n- pythos3·6 : Django 2.0\n- pythos3·6 : Django 2.1\n- pythos3·7 : Django 1.8\n- pythos3·7 : Django 1.9\n- pythos3·7 : Django 1.11\n- pythos3·7 : Django 2.0\n- pythos3·7 : Django 2.1\n\n## Install\n\n```bash\npip install django_opg\n```\n\nAdd `django_opg` in `INSTALLED_APPS`:\n\n```python\nINSTALLED_APPS = [\n    ...\n    \"django_opg\",\n    ...\n]\n```\n\nExecute:\n\n```bash\npython manage.py migrate\n```\n\n## Usage\n\nImport `{% load ogp %}` and add `{% show_ogp %}`in your `\u003cheader\u003e` tag\n\n### Settings\n\nYou can include the metas straight into your settings. The app currently supports the following data:\n\n```json\nOGP = {\n        \"og_title\": \"Ricardo Baltazar Chaves | Site\",\n        \"og_type\": \"website\",\n        \"og_description\": \"My personal site.\",\n        \"og_url\": \"https://www.ricardobaltazar.com/\",\n        \"locales\": [{\"og_locale_alternate\": \"en_US\"}, {\"og_locale_alternate\": \"pt_BR\"}],\n        \"images\": [\n            {\n                \"og_image\": \"https://www.ricardobaltazar.com/static/principal/images/profilepic-new.ac1b7deb01a8.jpg\",\n                \"og_image_url\": \"https://www.ricardobaltazar.com/static/principal/images/profilepic-new.ac1b7deb01a8.jpg\",\n                \"og_image_type\": \"image/jpeg\",\n                \"og_image_width\": 100,\n                \"og_image_height\": 200,\n                \"og_image_alt\": \"The Ricardo image\",\n            },\n            {\n                \"og_image\": \"https://www.ricardobaltazar.com/media/palestra_eventos/IMG_20170811_195143268.jpg.430x360_q85_box-679%2C0%2C3479%2C2340_crop_detail.jpg\",\n                \"og_image_url\": \"https://www.ricardobaltazar.com/media/palestra_eventos/IMG_20170811_195143268.jpg.430x360_q85_box-679%2C0%2C3479%2C2340_crop_detail.jpg\",\n                \"og_image_type\": \"image/jpeg\",\n                \"og_image_width\": 300,\n                \"og_image_height\": 400,\n                \"og_image_alt\": \"Ricardo Speech SEO\",\n            },\n        ],\n    }\n```\n\n### DataBase\n\nIf there is no `OGP` key in the settings, the application will fetch the data in the database.\n\nThe `BasicMeta` model is selected with `first()`, so only one record can exist to prevent data from being selected.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fricardochaves%2Fdjango_ogp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fricardochaves%2Fdjango_ogp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fricardochaves%2Fdjango_ogp/lists"}