{ "info": { "author": "UNKNOWN", "author_email": "UNKNOWN", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Utilities" ], "description": "=====================\nDjango WordPress Auth\n=====================\n\nIntroduction\n============\n\nAllows for access in Django to a WordPress installation for checking for\nthings like login status and roles / capabilities.\n\nRequirements\n============\n\nPython Dependencies:\n\n * `phpserialize`_\n\nWordPress Dependencies:\n\n * `root Cookie`_\n * `Members`_\n\n .. _`phpserialize`: http://pypi.python.org/pypi/phpserialize\n .. _`root Cookie`: http://wordpress.org/extend/plugins/root-cookie/\n .. _`Members`: http://wordpress.org/extend/plugins/members/\n\nInstallation\n============\n\nAdd your WordPress's auth keys and salts (found in wp-config.php) to your settings.py.\n\n.. sourcecode:: python\n\n WORDPRESS_LOGGED_IN_KEY = \"rs&^D%jPdu=vk|VVDsdfsdgsdgsdg9sd87f98s7h[Xm$3gT/@1xdasd\"\n WORDPRESS_LOGGED_IN_SALT = \"3]x^n{d8=su23902iu09jdc09asjd09asjd09jasdV-Lv-OydAQ%?~\"\n\nAdd your WordPress database to DATABASES in settings.py.\n\n.. sourcecode:: python\n\n DATABASES = {\n 'default': {\n ... # default django DB\n },\n 'wordpress': { # must be named 'wordpress'\n 'ENGINE': 'django.db.backends.mysql',\n 'NAME': 'wordpress',\n 'USER': '...',\n 'PASSWORD': '...',\n 'HOST': '...',\n 'PORT': 3306,\n }\n }\n\nAdd the middleware to MIDDLEWARE_CLASSES in settings.py.\nMake sure it's placed somewhere after the session middleware.\n\n.. sourcecode:: python\n\n MIDDLEWARE_CLASSES = (\n 'django.contrib.sessions.middleware.SessionMiddleware',\n # ...\n 'wordpress_auth.middleware.WordPressAuthMiddleware',\n )\n\nFinally, add `wordpress_auth` to INSTALLED_APPS.\n\n.. sourcecode:: python\n\n INSTALLED_APPS = (\n # ...\n 'wordpress_auth',\n )\n\nUsage\n=====\n\nTo restrict a view to a certain role, simply wrap the view in the\n``wordpress_requires_role`` decorator.\n\n.. sourcecode:: python\n\n from wordpress_auth.decorators import wordpress_requires_role\n\n @wordpress_requires_role('my_role')\n def my_view():\n pass\n\nYou can restrict a view to a capability as well.\n\n.. sourcecode:: python\n\n from wordpress_auth.decorators import wordpress_requires_capability\n\n @wordpress_requires_capability('my_capability')\n def my_view():\n pass\n\nFinally, the middleware provides access to the WordPress user via ``request.wordpress_user``.\n\nSee ``models.py`` for full reference. Some of the redundant naming conventions\nin the WordPress database have been made simpler as well.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/dellis23/django-wordpress-auth", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "django-wordpress-auth", "package_url": "https://pypi.org/project/django-wordpress-auth/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-wordpress-auth/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/dellis23/django-wordpress-auth" }, "release_url": "https://pypi.org/project/django-wordpress-auth/0.1.31/", "requires_dist": null, "requires_python": null, "summary": "Django integration with WordPress authentication and roles / capabilities system.", "version": "0.1.31" }, "last_serial": 1555487, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "d3418a51851062186a1ad2a7c85b49e5", "sha256": "a205818f124bfac4b90078e4aca0f0cfbe1278030a2bfda299f7ff51834ea3c9" }, "downloads": -1, "filename": "django_wordpress_auth-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d3418a51851062186a1ad2a7c85b49e5", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 7829, "upload_time": "2015-01-16T16:59:54", "url": "https://files.pythonhosted.org/packages/1a/96/6c72aeb67e316484f9dfd1498e969cdd880e2ca2457575f33a8145bf40b1/django_wordpress_auth-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f1a930f542c9170655cb3c22e9370f80", "sha256": "64f220539d8bdab0323f287253ebe7b2286ee782f722da2d34961d8aa87fb4ef" }, "downloads": -1, "filename": "django-wordpress-auth-0.1.0.tar.gz", "has_sig": false, "md5_digest": "f1a930f542c9170655cb3c22e9370f80", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4628, "upload_time": "2015-01-16T16:56:33", "url": "https://files.pythonhosted.org/packages/b3/c3/57409c08ef50ec7050b7219d0dcb59427b486bd8b0e1be2249235899d0c6/django-wordpress-auth-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "95db885dafcd2d292698a47d766e5873", "sha256": "0739a0b9f1e1e4f0def0a42dead670136931ed81630fcd68c9a250b5ea06af90" }, "downloads": -1, "filename": "django_wordpress_auth-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "95db885dafcd2d292698a47d766e5873", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 7819, "upload_time": "2015-02-02T20:29:16", "url": "https://files.pythonhosted.org/packages/4f/56/701753ad8d0432cbf4d973d1a8a48a34df544d6e344f183dc1f482d9a5a7/django_wordpress_auth-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "575a118b9667e1550b67da9d7080d959", "sha256": "67cfbb501b628dd7bf1eeaa405b860ef59b474919846d0b5fe9e0caa914b8afd" }, "downloads": -1, "filename": "django-wordpress-auth-0.1.1.tar.gz", "has_sig": false, "md5_digest": "575a118b9667e1550b67da9d7080d959", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4607, "upload_time": "2015-02-02T20:29:05", "url": "https://files.pythonhosted.org/packages/51/78/27e8bed94252c41ca433b663fd222f8de17a3571381cf8f8c47673cbfd8e/django-wordpress-auth-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "c93504d64689fd7766911b3800a9b00f", "sha256": "cc5fa47950acaf5073263f084cef69eeb5bfaa868c56db97aeafa1a6fd0122b2" }, "downloads": -1, "filename": "django_wordpress_auth-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c93504d64689fd7766911b3800a9b00f", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 7827, "upload_time": "2015-02-23T19:18:32", "url": "https://files.pythonhosted.org/packages/35/02/318ec7ebe12be903e1bc9d71f59de16ead3fb94c1172340f9bf464f46cc9/django_wordpress_auth-0.1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "57ad9e22d9af7bd1471fc1998932cedf", "sha256": "b5de45e411aae845e29d58f5e3a06eeb861e57a58fea137baea7e36bbe5884eb" }, "downloads": -1, "filename": "django-wordpress-auth-0.1.2.tar.gz", "has_sig": false, "md5_digest": "57ad9e22d9af7bd1471fc1998932cedf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4643, "upload_time": "2015-02-23T19:18:15", "url": "https://files.pythonhosted.org/packages/cf/93/cce1662cd4e3dcb525215071273c014f8d27255fbbcf4a95efa9530dee5a/django-wordpress-auth-0.1.2.tar.gz" } ], "0.1.31": [ { "comment_text": "", "digests": { "md5": "6a6bb4387383672dada2fb651e1ea2ee", "sha256": "e8c73cabf3e993d5597f96d799cd9a39e32ebc6ffca3c6bc0949b166b12b969c" }, "downloads": -1, "filename": "django_wordpress_auth-0.1.31-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6a6bb4387383672dada2fb651e1ea2ee", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 7904, "upload_time": "2015-05-20T19:57:22", "url": "https://files.pythonhosted.org/packages/3f/cf/8f7677c8c4babef17454fcfa746a3aa6c00a55a0d7d2988b660ae3299a7e/django_wordpress_auth-0.1.31-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "081b1df98001e5c8384b61858cf1e2fc", "sha256": "c3db71ccb2c7191387f12ca75ebb7e55f504f31df0fd413d7ce2b65d4d6b20fa" }, "downloads": -1, "filename": "django-wordpress-auth-0.1.31.tar.gz", "has_sig": false, "md5_digest": "081b1df98001e5c8384b61858cf1e2fc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4679, "upload_time": "2015-05-20T19:57:12", "url": "https://files.pythonhosted.org/packages/02/be/59d68de15c6dab2f13b57118cd068a02ffad65bc80c016d5471303091b0d/django-wordpress-auth-0.1.31.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6a6bb4387383672dada2fb651e1ea2ee", "sha256": "e8c73cabf3e993d5597f96d799cd9a39e32ebc6ffca3c6bc0949b166b12b969c" }, "downloads": -1, "filename": "django_wordpress_auth-0.1.31-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6a6bb4387383672dada2fb651e1ea2ee", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 7904, "upload_time": "2015-05-20T19:57:22", "url": "https://files.pythonhosted.org/packages/3f/cf/8f7677c8c4babef17454fcfa746a3aa6c00a55a0d7d2988b660ae3299a7e/django_wordpress_auth-0.1.31-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "081b1df98001e5c8384b61858cf1e2fc", "sha256": "c3db71ccb2c7191387f12ca75ebb7e55f504f31df0fd413d7ce2b65d4d6b20fa" }, "downloads": -1, "filename": "django-wordpress-auth-0.1.31.tar.gz", "has_sig": false, "md5_digest": "081b1df98001e5c8384b61858cf1e2fc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4679, "upload_time": "2015-05-20T19:57:12", "url": "https://files.pythonhosted.org/packages/02/be/59d68de15c6dab2f13b57118cd068a02ffad65bc80c016d5471303091b0d/django-wordpress-auth-0.1.31.tar.gz" } ] }