{ "info": { "author": "Eric Florenzano", "author_email": "floguy@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python" ], "description": "===================\ndjango-session-user\n===================\n\nThis app is a simple piece of middleware that can be added to your Django\nproject which will store and retrieve the logged-in user's information from\nthe session.\n\n\nInstallation\n------------\n\nAdd the sesionuser middleware line to your MIDDLEWARE_CLASSES after the\nAuthenticationMiddleware:\n\n MIDDLEWARE_CLASSES = (\n # ...\n 'django.contrib.auth.middleware.AuthenticationMiddleware',\n 'sessionuser.middleware.SessionUserMiddleware',\n # ...\n )\n\n\nWhy do this?\n------------\n\nYour server is already fetching the contents of the user's session, which\nalready contains the user's identity. Why not store the rest of the user\nclass's data along with it? That way you don't have to make a request to the\ndatabase for every authenticated web request.\n\nAdditionally if you are using a cookie-based session backend (like\ndjango-cookie-sessions, written by yours truly) you can have other systems,\nmaybe even non-Django systems, which read the cookie and know more information\nabout the user.\n\n\nCustomizable Settings\n---------------------\n\nCOOKIE_USER_REFRESH_TIME [= 14400]:\n\n The number of seconds that need to elapse before the user is fetched from\n the database instead of trusting the cookie. This is useful for making\n sure that even if the user's properties are changed in the database,\n the user's cookie will still be updated.", "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/ericflo/django-session-user", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "django-session-user", "package_url": "https://pypi.org/project/django-session-user/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-session-user/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/ericflo/django-session-user" }, "release_url": "https://pypi.org/project/django-session-user/0.1.1/", "requires_dist": null, "requires_python": null, "summary": "Stores the user's information in the session, reucing database queries by a lot.", "version": "0.1.1" }, "last_serial": 790584, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "88b82e52e84048122b1ce47ea8b69ab1", "sha256": "bc9f8850b6aaeb05b858f9cf10e19bc626fa70d31800faf4c57f4c3a825468e0" }, "downloads": -1, "filename": "django-session-user-0.1.tar.gz", "has_sig": false, "md5_digest": "88b82e52e84048122b1ce47ea8b69ab1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3776, "upload_time": "2011-06-09T21:07:00", "url": "https://files.pythonhosted.org/packages/b2/8f/d5ee87d19380f45da9c556c4454a69ef36baa09213b99d12477c7cd306a2/django-session-user-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "719e9a73586d1622189bd1857846f841", "sha256": "a80293ba698dcd2305b33fa92fc74de7a84ee8a0e7c978f9ef125da2441ad290" }, "downloads": -1, "filename": "django-session-user-0.1.1.tar.gz", "has_sig": false, "md5_digest": "719e9a73586d1622189bd1857846f841", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3791, "upload_time": "2011-06-09T22:04:24", "url": "https://files.pythonhosted.org/packages/55/bb/9a9b6cae355877ee34be0068a2a859e1b5eabe2acc113939b40f51baebcb/django-session-user-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "719e9a73586d1622189bd1857846f841", "sha256": "a80293ba698dcd2305b33fa92fc74de7a84ee8a0e7c978f9ef125da2441ad290" }, "downloads": -1, "filename": "django-session-user-0.1.1.tar.gz", "has_sig": false, "md5_digest": "719e9a73586d1622189bd1857846f841", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3791, "upload_time": "2011-06-09T22:04:24", "url": "https://files.pythonhosted.org/packages/55/bb/9a9b6cae355877ee34be0068a2a859e1b5eabe2acc113939b40f51baebcb/django-session-user-0.1.1.tar.gz" } ] }