{ "info": { "author": "Ricardo Baltazar Chaves", "author_email": "ricardobchaves6@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 2.0", "Framework :: Django :: 2.1", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: Portuguese (Brazilian)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.7" ], "description": "# 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&utm_medium=referral&utm_content=ricardochaves/django_ogp&utm_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)\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\u00b77 : Django 1.8\n- pythos2\u00b77 : Django 1.11\n- pythos3\u00b74 : Django 1.8\n- pythos3\u00b74 : Django 1.9\n- pythos3\u00b74 : Django 1.11\n- pythos3\u00b75 : Django 1.8\n- pythos3\u00b75 : Django 1.9\n- pythos3\u00b75 : Django 1.11\n- pythos3\u00b75 : Django 2.0\n- pythos3\u00b75 : Django 2.1\n- pythos3\u00b76 : Django 1.8\n- pythos3\u00b76 : Django 1.9\n- pythos3\u00b76 : Django 1.11\n- pythos3\u00b76 : Django 2.0\n- pythos3\u00b76 : Django 2.1\n- pythos3\u00b77 : Django 1.8\n- pythos3\u00b77 : Django 1.9\n- pythos3\u00b77 : Django 1.11\n- pythos3\u00b77 : Django 2.0\n- pythos3\u00b77 : 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 `
` 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\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ricardochaves/django_ogp", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-ogp", "package_url": "https://pypi.org/project/django-ogp/", "platform": "", "project_url": "https://pypi.org/project/django-ogp/", "project_urls": { "Homepage": "https://github.com/ricardochaves/django_ogp" }, "release_url": "https://pypi.org/project/django-ogp/0.0b7/", "requires_dist": null, "requires_python": "", "summary": "A more dynamic way to register Open Graph protocol", "version": "0.0b7" }, "last_serial": 4358422, "releases": { "0.0b4": [ { "comment_text": "", "digests": { "md5": "0cc1b54344fbd317ed31ca4ee0916443", "sha256": "9b5d9d97d1698d7ba32843ccb044f028b56459267059cba8cf8ac73143177e52" }, "downloads": -1, "filename": "django_ogp-0.0b4-py3-none-any.whl", "has_sig": false, "md5_digest": "0cc1b54344fbd317ed31ca4ee0916443", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9530, "upload_time": "2018-10-08T22:49:15", "url": "https://files.pythonhosted.org/packages/03/cd/0cf78cf3aa6908197a8adcb85ea32fdcbfa1fa2a238faaf3f04821b244e0/django_ogp-0.0b4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f3bab19705a5059599327583a068d28f", "sha256": "c1c8e4d93463be9bd96f938cd868cfcdde24cf524fff0d1855af43870f61cacb" }, "downloads": -1, "filename": "django_ogp-0.0b4.tar.gz", "has_sig": false, "md5_digest": "f3bab19705a5059599327583a068d28f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7511, "upload_time": "2018-10-08T22:49:17", "url": "https://files.pythonhosted.org/packages/b0/10/0907ee9f8be6d1ca05ecaae012933d463025008f9248e1fc81a796ee68ba/django_ogp-0.0b4.tar.gz" } ], "0.0b5": [ { "comment_text": "", "digests": { "md5": "fa443f4914ee1d8de916f7a305ed3282", "sha256": "be9752f02c81fe020f305cbdab560e214927c5b06c937c59069164ed577d0e02" }, "downloads": -1, "filename": "django_ogp-0.0b5-py3-none-any.whl", "has_sig": false, "md5_digest": "fa443f4914ee1d8de916f7a305ed3282", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10538, "upload_time": "2018-10-10T01:19:11", "url": "https://files.pythonhosted.org/packages/d7/40/6939fe0fcc5b2c0170ab43638a5ef61d60d58f4fb651242e8b7dc11eefe7/django_ogp-0.0b5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "19df6c98498e268a257b1001c65d5407", "sha256": "8ed19503b59ec471826923065bc49d3227d60ca25e70c0d5ede4a2f930d45f96" }, "downloads": -1, "filename": "django_ogp-0.0b5.tar.gz", "has_sig": false, "md5_digest": "19df6c98498e268a257b1001c65d5407", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8614, "upload_time": "2018-10-10T01:19:13", "url": "https://files.pythonhosted.org/packages/e0/b6/9edeeefa805109d09477b7731a9076aaf3b02851fe7b582dc80e568851bb/django_ogp-0.0b5.tar.gz" } ], "0.0b6": [ { "comment_text": "", "digests": { "md5": "e8bc429309aec147174adbaf46e010bd", "sha256": "25b0540922c6670b2b3f155c21e972483ddd71b79eff13d9667c42b2da4c16d2" }, "downloads": -1, "filename": "django_ogp-0.0b6-py3-none-any.whl", "has_sig": false, "md5_digest": "e8bc429309aec147174adbaf46e010bd", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10537, "upload_time": "2018-10-10T01:55:18", "url": "https://files.pythonhosted.org/packages/90/aa/4f3a4d339bc518557b0b6ad1a25ca87ba37ca666177d502074ed0823fa5c/django_ogp-0.0b6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fc1886c582a6005f6539f3ea51b2537a", "sha256": "cd255150d0ad7d99b19d9472a73104227ee576635ca3b71cef13c620524152f7" }, "downloads": -1, "filename": "django_ogp-0.0b6.tar.gz", "has_sig": false, "md5_digest": "fc1886c582a6005f6539f3ea51b2537a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8596, "upload_time": "2018-10-10T01:55:20", "url": "https://files.pythonhosted.org/packages/1f/87/3aba194f9486084fa53a718dbc013c942e31db5541e2f80f1743e6e3653e/django_ogp-0.0b6.tar.gz" } ], "0.0b7": [ { "comment_text": "", "digests": { "md5": "bd3400eb2a125d418a6f1e97abf6492c", "sha256": "b0de146ca35f312153fb6aadef6bcc873a203a1635d4ef3929eeb89b90b5b189" }, "downloads": -1, "filename": "django_ogp-0.0b7-py3-none-any.whl", "has_sig": false, "md5_digest": "bd3400eb2a125d418a6f1e97abf6492c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11139, "upload_time": "2018-10-10T02:13:43", "url": "https://files.pythonhosted.org/packages/92/18/24a98f08e3ec6bd453848638204973a756eec82d6ebbdb0951bb711b6893/django_ogp-0.0b7-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d2a13436cfb6fc74e658abfce2d33660", "sha256": "3397fc32af8c316ee74696f48ddb479c30e2032934e9351b03c9d3f13a8018c2" }, "downloads": -1, "filename": "django_ogp-0.0b7.tar.gz", "has_sig": false, "md5_digest": "d2a13436cfb6fc74e658abfce2d33660", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8719, "upload_time": "2018-10-10T02:13:47", "url": "https://files.pythonhosted.org/packages/14/56/af62449a903f1d3970573d0ee19b9eeb8b5131a00e99570f399ec803902b/django_ogp-0.0b7.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bd3400eb2a125d418a6f1e97abf6492c", "sha256": "b0de146ca35f312153fb6aadef6bcc873a203a1635d4ef3929eeb89b90b5b189" }, "downloads": -1, "filename": "django_ogp-0.0b7-py3-none-any.whl", "has_sig": false, "md5_digest": "bd3400eb2a125d418a6f1e97abf6492c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11139, "upload_time": "2018-10-10T02:13:43", "url": "https://files.pythonhosted.org/packages/92/18/24a98f08e3ec6bd453848638204973a756eec82d6ebbdb0951bb711b6893/django_ogp-0.0b7-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d2a13436cfb6fc74e658abfce2d33660", "sha256": "3397fc32af8c316ee74696f48ddb479c30e2032934e9351b03c9d3f13a8018c2" }, "downloads": -1, "filename": "django_ogp-0.0b7.tar.gz", "has_sig": false, "md5_digest": "d2a13436cfb6fc74e658abfce2d33660", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8719, "upload_time": "2018-10-10T02:13:47", "url": "https://files.pythonhosted.org/packages/14/56/af62449a903f1d3970573d0ee19b9eeb8b5131a00e99570f399ec803902b/django_ogp-0.0b7.tar.gz" } ] }