{ "info": { "author": "Denis Veselov", "author_email": "progr.mail@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: ISC License (ISCL)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Internet :: WWW/HTTP" ], "description": "django-simple-open-graph\n========================\n\nDjango package for simplicity embed open graph (og:) layout in templates for different objects\n\n\nProblem\n-------\n\nIf you use many different objects and you need embed open-graph (e.g. fb: for facebook) layout for all pages in site.\n\n\nSolution\n--------\n\nThis package help you!\n\ufeff\n\n\u2588\u2584\u2584 \u2588\u2588\u2588 \u2588\u2584\u2584 \u2588\u2584\u2588\u2584\u2588 \u2588\u2584\u2588 \u2580\u2588\u2580\n\n\nInstallation\n------------\n\nYou can install from PyPI::\n\n $ pip install django-simple-open-graph==0.1\n\nAnd add ``simple_open_graph`` in your ``INSTALLED_APPS``.\n\n\nExample Of Usage\n----------------\n\nAdd og namespace in your base template::\n\n \n\nor for facebook::\n\n \n\nAnd add block in base template::\n\n
\n ...\n {% block extra_head %}{% endblock %}\n ...\n \n\nAaand! You can use this package in different templates::\n\n {% load simple_open_graph %}\n\n {% block extra_head %}\n {% thumbnail object.user.image 150x150 as uimage %} \n {% opengraph_meta \"url=object.get_absolute_url, title=object.title, type='website', image=uimage.url\" %}\n {% endblock %}\n\nThis tag converted in meta html properties::\n\n \n \n \n \n\nExcellent!\n\n\nUseful Links\n------------\n\n* `The Open Graph protocol