{ "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.\n\nRequirements\n============\n\nPython Dependencies:\n\n * `phpserialize`_\n\nWordPress Dependencies:\n\n * `root Cookie`_\n\n .. _`phpserialize`: http://pypi.python.org/pypi/phpserialize\n .. _`root Cookie`: http://wordpress.org/extend/plugins/root-cookie/\n\n\nAlternatives to Root Cookie\n---------------------------\n\nIf you are receiving warnings using *root Cookie*, please see `this issue`_ for alternative solutions.\n\n .. _`this issue`: https://github.com/dellis23/django-wordpress-auth/issues/6\n\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_lite.middleware.WordPressAuthMiddleware',\n )\n\nFinally, add `wordpress_auth_lite` to INSTALLED_APPS.\n\n.. sourcecode:: python\n\n INSTALLED_APPS = (\n # ...\n 'wordpress_auth_lite',\n )\n\nUsage\n=====\n\nTo restrict a view to users that are authenticated with WordPress:\n``wordpress_requires_role`` decorator.\n\n.. sourcecode:: python\n\n from wordpress_auth_lite.decorators import wordpress_login_required\n\n @wordpress_login_required\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/ScilCoop/django-wordpress-auth-lite.git", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "django-wordpress-auth-lite", "package_url": "https://pypi.org/project/django-wordpress-auth-lite/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-wordpress-auth-lite/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/ScilCoop/django-wordpress-auth-lite.git" }, "release_url": "https://pypi.org/project/django-wordpress-auth-lite/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "Django integration with WordPress authentication and WITHOUT roles / capabilities system.", "version": "0.1.0" }, "last_serial": 1705087, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "1523179fdec61abf03ac1feba0b90f66", "sha256": "f5da140d03b0d169ace61ca7afaec1cb20bf92ccda08224080c07c057479f178" }, "downloads": -1, "filename": "django-wordpress-auth-lite-0.1.0.tar.gz", "has_sig": false, "md5_digest": "1523179fdec61abf03ac1feba0b90f66", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4314, "upload_time": "2015-09-02T15:27:08", "url": "https://files.pythonhosted.org/packages/a3/96/a0c406930d50d94d2f7c03ff55e77243f67a43ef0e2040b31416c1716a18/django-wordpress-auth-lite-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1523179fdec61abf03ac1feba0b90f66", "sha256": "f5da140d03b0d169ace61ca7afaec1cb20bf92ccda08224080c07c057479f178" }, "downloads": -1, "filename": "django-wordpress-auth-lite-0.1.0.tar.gz", "has_sig": false, "md5_digest": "1523179fdec61abf03ac1feba0b90f66", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4314, "upload_time": "2015-09-02T15:27:08", "url": "https://files.pythonhosted.org/packages/a3/96/a0c406930d50d94d2f7c03ff55e77243f67a43ef0e2040b31416c1716a18/django-wordpress-auth-lite-0.1.0.tar.gz" } ] }