{ "info": { "author": "Tomasz Wysocki", "author_email": "tomasz@wysocki.info", "bugtrack_url": null, "classifiers": [], "description": "django-social-metadata\n======================\n\ndjango-social-metadata is a Django application that provides mixin and\ntemplate to display social metadata for Facebook and Google+.\n\nInstallation\n------------\n\nPackage\n_______\n\njavascript-settings can be installed as a normal Python package.\n\nExample instalation for pip::\n\n $ pip install django-social-metadata\n\n\nConfiguration\n-------------\n\nsettings.py\n___________\n\nAdd javascript-settings to INSTALLED_APPS::\n\n INSTALLED_APPS = (\n ...\n 'social_metadata',\n ...\n )\n\ntemplate\n________\n\nInclude template in HEAD section of your main template::\n\n {% include \"social_metadata/default_tags.html\" %}\n\nUsage Example\n-------------\n\nviews.py ::\n\n from urlparse import urljoin\n\n from django.conf.settings import MEDIA_URL\n from django.views.generic import DetailView\n\n import social_metadata.views\n\n class PhotoSocialDataMixin(social_metadata.views.SocialDataMixin):\n def get_social_title(self):\n return self.title\n\n def get_social_images(self):\n return [urljoin(MEDIA_URL, self.image.path)]\n\n def get_social_description(self):\n return self.description\n\n class PhotoDetail(PhotoSocialDataMixin, DetailView):\n model = Photo\n\n\nCheck https://github.com/pozytywnie/django-social-metadata/blob/master/social_metadata/views.py for other social metadata fields.\n\nIf you want to use Twitter cards you have to provide all required fields for given type ( https://dev.twitter.com/cards/overview ),\nas well as submit a link in the validator at https://cards-dev.twitter.com/validator and witelist every type you want to use for given domain.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "UNKNOWN", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "django-social-metadata", "package_url": "https://pypi.org/project/django-social-metadata/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-social-metadata/", "project_urls": { "Download": "UNKNOWN", "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/django-social-metadata/1.3/", "requires_dist": null, "requires_python": null, "summary": "django-social-metadata is a Django application that provides mixin and template to display social metadata for Facebook and Google+.", "version": "1.3" }, "last_serial": 2050836, "releases": { "1.3": [ { "comment_text": "", "digests": { "md5": "eb3f514b9ee7dd379e4a23800bce1e30", "sha256": "ba4addfd54c87589c2f7577f618374a9c2594f753805f8a68292f640f68ebf57" }, "downloads": -1, "filename": "django-social-metadata-1.3.tar.gz", "has_sig": false, "md5_digest": "eb3f514b9ee7dd379e4a23800bce1e30", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2813, "upload_time": "2016-04-07T07:34:33", "url": "https://files.pythonhosted.org/packages/e1/0b/7987ca097a14112c4b09000463029a37be195f7cd179a7792e1b873c2837/django-social-metadata-1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "eb3f514b9ee7dd379e4a23800bce1e30", "sha256": "ba4addfd54c87589c2f7577f618374a9c2594f753805f8a68292f640f68ebf57" }, "downloads": -1, "filename": "django-social-metadata-1.3.tar.gz", "has_sig": false, "md5_digest": "eb3f514b9ee7dd379e4a23800bce1e30", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2813, "upload_time": "2016-04-07T07:34:33", "url": "https://files.pythonhosted.org/packages/e1/0b/7987ca097a14112c4b09000463029a37be195f7cd179a7792e1b873c2837/django-social-metadata-1.3.tar.gz" } ] }