{ "info": { "author": "Mikhail Korobov", "author_email": "kmike84@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "=======================\ndjango-vkontakte-iframe\n=======================\n\nDjango app for developing vk.com (aka vkontakte.ru largest,\nRussian social network) iframe applications.\n\nHandles user authentication and registration.\n\nInstallation\n============\n\n::\n\n $ pip install django-vkontakte-iframe\n\n\nRequirements\n============\n\n* django-annoying for AutoOneToOneField\n\nOptional:\n\n* vkontakte >= 1.3 for ``request.vk_api`` and for\n populating cities and countries info via admin action.\n\nUsage\n=====\n\n1. Register and configure vkontakte iframe application here:\n http://vkontakte.ru/apps.php?act=add\n\n2. Add your app's settings to settings.py::\n\n VK_APP_ID = '1234567' # Application ID\n VK_APP_KEY = 'M1gytuHwni' # Application key\n VK_APP_SECRET = 'MiRFwrDYwcYFCTD18EcY' # Secure key\n\n3. Add 'vk_iframe' to ``INSTALLED_APPS``.\n\n4. Add 'vk_iframe.backends.VkontakteUserBackend' to AUTHENTICATION_BACKENDS::\n\n AUTHENTICATION_BACKENDS = (\n 'django.contrib.auth.backends.ModelBackend',\n 'vk_iframe.backends.VkontakteUserBackend',\n )\n\n\n5. Put 'vk_iframe.middleware.AuthenticationMiddleware',\n 'vk_iframe.middleware.IFrameFixMiddleware' and\n 'vk_iframe.middleware.LoginRequiredMiddleware' to MIDDLEWARE_CLASSES::\n\n MIDDLEWARE_CLASSES = [\n # ...\n 'django.contrib.auth.middleware.AuthenticationMiddleware',\n # ...\n 'vk_iframe.middleware.IFrameFixMiddleware',\n 'vk_iframe.middleware.AuthenticationMiddleware',\n # ...\n 'django.middleware.locale.LocaleMiddleware',\n # ...\n 'vk_iframe.middleware.LoginRequiredMiddleware',\n ]\n\n Please note that 'vk_iframe.middleware.AuthenticationMiddleware' must be\n after 'django.contrib.auth.middleware.AuthenticationMiddleware' but before\n 'django.middleware.locale.LocaleMiddleware'.\n\n 'vk_iframe.middleware.LoginRequiredMiddleware' must be after\n 'vk_iframe.middleware.AuthenticationMiddleware'.\n\n Vkontakte visitors will be automatically registered and authorized as django\n users (username == vkontakte user id).\n\n LoginRequiredMiddleware is an optional. It returns 403 for all unauthorized\n requests with urls not listed in settings.PUBLIC_URLS. You should\n enable it for security reasons. Example of PUBLIC_URLS::\n\n PUBLIC_URLS = [\n '^admin/$',\n '^my-callback/',\n ]\n\n If i18n is in use then vkontakte user's language will be used as django's\n user language.\n\n\n6. Run ``python ./manage.py syncdb`` (or ``python ./manage.py migrate vk_iframe`` if\n South is used)\n\n7. Optional: load initial geo data (cities and countries)::\n\n python manage loaddata vk-geo\n\n8. If you want to store more user data then put the following line as\n the 'First API request' ('\u041f\u0435\u0440\u0432\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 \u043a API') option (in your app edit\n page at vkontakte.ru)::\n\n method=getProfiles&uids={viewer_id}&format=json&v=3.0&fields=uid,first_name,last_name,nickname,domain,sex,bdate,city,country,timezone,photo,photo_medium,photo_big,photo_rec,has_mobile,rate,contacts,education\n\n9. For IE: adjust P3P policy header value according to your site privacy policy\n by providing VK_P3P_POLICY option in your settings.py::\n\n VK_P3P_POLICY = 'IDC DSP COR IVAi IVDi OUR TST'\n\n Default value is 'IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT'.\n See http://www.p3pwriter.com/LRN_111.asp for the full set of tags.\n\n10. That's all. All your app's visitors are now registered and authenticated\n django users. Additional profile data is available as user.vk_profile.\n ``vkontakte.API`` instance is available as ``request.vk_api`` if there is\n an access token available.\n\n\n\nCHANGES\n=======\n\n0.4.1 (2013-03-07)\n------------------\n\n* django 1.5 support (thanks Maxim Syabro).\n\n0.4 (2012-11-10)\n----------------\n* ``request.vk_api`` with ``vkontakte.API`` instance (thanks Anton Smirnov);\n* Workaround for AttributeError in forms.py (thanks Evgeniy Kirov);\n* Improved Safari cookie fix (thanks Domantas Jack\u016bnas);\n* IFrameFixMiddleware works now if user agent is not set (thanks Evgeniy Kirov).\n\n0.3 (2011-11-28)\n----------------\n\n* Auth backend is fixed (thanks Evgeniy Kirov and http://habrahabr.ru/users/Zaharov/);\n* improved README;\n* IE fix: P3P policy headers are added (thanks Maxim Syabro for suggestion);\n* Opera and Safari cookies fix (thanks Evgeniy Kirov);\n* alternative OpenAPI authorization (thanks Evgeniy Kirov).\n\n0.2 (2010-10-30)\n----------------\n\n* Vkontakte user language is integrated with django i18n. Thanks Vasyl Nakvasiuk.\n* Error with InnoDB fixture loading is fixed.\n\n0.1.1 (2010-10-09)\n------------------\n\nBugfix: login was not allowed if user language was unknown.\nFull vkontakte language list. Thanks Vasyl Nakvasiuk.\n\n0.1 (2010-09-06)\n----------------\n\nThe first release", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/kmike/django-vkontakte-iframe/", "keywords": null, "license": "MIT license", "maintainer": null, "maintainer_email": null, "name": "django-vkontakte-iframe", "package_url": "https://pypi.org/project/django-vkontakte-iframe/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-vkontakte-iframe/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://bitbucket.org/kmike/django-vkontakte-iframe/" }, "release_url": "https://pypi.org/project/django-vkontakte-iframe/0.4.1/", "requires_dist": null, "requires_python": null, "summary": "Django app for developing vk.com (aka vkontakte.ru) iframe applications", "version": "0.4.1" }, "last_serial": 654608, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "3a0def40a9c27318c0a8e3ab0a400576", "sha256": "d3757251cda6ca19f1ab40862597fb0bbab815beabc55e03de3c32a8205098a6" }, "downloads": -1, "filename": "django-vkontakte-iframe-0.1.tar.gz", "has_sig": false, "md5_digest": "3a0def40a9c27318c0a8e3ab0a400576", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 30649, "upload_time": "2010-09-06T04:48:12", "url": "https://files.pythonhosted.org/packages/20/a9/31fe00f41bfd892dc46401d5dcf224189e1cfef6f2d92ccbff6cea1fe663/django-vkontakte-iframe-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "c58664e4e15842beebd5e3b23d30bcef", "sha256": "cefefd4587e7ca02326a448fd12835bb8c3084628a751dbd6a0af4d09c0cba10" }, "downloads": -1, "filename": "django-vkontakte-iframe-0.1.1.tar.gz", "has_sig": false, "md5_digest": "c58664e4e15842beebd5e3b23d30bcef", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 32019, "upload_time": "2010-10-09T18:25:33", "url": "https://files.pythonhosted.org/packages/f1/19/1c209e88ee83cf8d27943fe819635d630984b44acc4f70f8b415bc2e272d/django-vkontakte-iframe-0.1.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "4220467db3e3f3d5d144ae0abc2e6626", "sha256": "7cd8b267369452e78e9a77b07743cfcfe064afbf76a1008a75df9369151742f6" }, "downloads": -1, "filename": "django-vkontakte-iframe-0.2.tar.gz", "has_sig": false, "md5_digest": "4220467db3e3f3d5d144ae0abc2e6626", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 32566, "upload_time": "2010-10-30T14:31:47", "url": "https://files.pythonhosted.org/packages/35/ee/850707e63773547d46a37ebd17dbfc49ccb76d177e9bd55eb86d237ce644/django-vkontakte-iframe-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "d590a4934f826c492f791826e385eb59", "sha256": "a020031295f9c1d8144bcfaac208fc307e6d3736b2cc28ae9d44d7fa350d4d42" }, "downloads": -1, "filename": "django-vkontakte-iframe-0.3.tar.gz", "has_sig": false, "md5_digest": "d590a4934f826c492f791826e385eb59", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 34270, "upload_time": "2011-11-28T10:44:28", "url": "https://files.pythonhosted.org/packages/64/ea/8287c363d96b6b70c72e2a984b43431988096f2ded765e73f6d8ebf9d28a/django-vkontakte-iframe-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "a5178abda1d661f06668e809025e625d", "sha256": "b0ce8f73defe5e106766b40290b4674fbcb45be53846553cb53c0b7b60ecfe1e" }, "downloads": -1, "filename": "django-vkontakte-iframe-0.4.tar.gz", "has_sig": false, "md5_digest": "a5178abda1d661f06668e809025e625d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 34944, "upload_time": "2012-11-09T23:33:25", "url": "https://files.pythonhosted.org/packages/99/da/61a8835c1ee1b3a357766ee547d6e0139eb1a1e43d6f0a4d7d0913a50c9d/django-vkontakte-iframe-0.4.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "e1d42dfcb6bfc73ceb02ac8e6d692171", "sha256": "c549c19dc71e32d0e3db6742ce2c3ccd2d3b5a1cd8a35dcef5c4ed6c4239ad0c" }, "downloads": -1, "filename": "django-vkontakte-iframe-0.4.1.tar.gz", "has_sig": false, "md5_digest": "e1d42dfcb6bfc73ceb02ac8e6d692171", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 35167, "upload_time": "2013-03-07T16:16:31", "url": "https://files.pythonhosted.org/packages/2d/7b/086c2e46fd123c00a07695f6fff86c7af33a4affb45472c07f411e2df827/django-vkontakte-iframe-0.4.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e1d42dfcb6bfc73ceb02ac8e6d692171", "sha256": "c549c19dc71e32d0e3db6742ce2c3ccd2d3b5a1cd8a35dcef5c4ed6c4239ad0c" }, "downloads": -1, "filename": "django-vkontakte-iframe-0.4.1.tar.gz", "has_sig": false, "md5_digest": "e1d42dfcb6bfc73ceb02ac8e6d692171", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 35167, "upload_time": "2013-03-07T16:16:31", "url": "https://files.pythonhosted.org/packages/2d/7b/086c2e46fd123c00a07695f6fff86c7af33a4affb45472c07f411e2df827/django-vkontakte-iframe-0.4.1.tar.gz" } ] }