{ "info": { "author": "Vladislav Lozhechnik", "author_email": "lozhechnik.vladislav@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "DJANGO-SEARCH-STATISTIC\n=======================\n\nInstallation\n------------\n1. pip install django-search-statistic\n2. Add search_statistic to settings.INSTALLED_APPS\n3. Add 'search_statistic.middleware.CollectStatisticMiddleware' to settings.MIDDLEWARE_CLASSES\n4. python manage.py migrate search_statistic\n\nUsage\n------\nIf you want specify content_type and object_pk (default only path is stored) you must add to your views: \nfrom search_statistic.utils.visits import visit_object\n\n\ndef some_view(request):\n\n obj = SomeModel.objects.get(pk=pk)\n\n visit_object(request, obj)\n\n\nSettings\n--------\nAll settings stored in settings.SEARCH_STATISTIC.\nDefault value is:\n\n{\n\n 'REDIS_CACHE_SIZE': 1,\n\n 'REDIS_PREFIX': 'django-search-statistic',\n\n 'REDIS_SETTINGS': {\n\n 'db': 1\n\n },\n\n 'REMOVE_ON_STATUS': [400, 403, 404, 405],\n\n 'default_query_confirm': False,\n\n}\n\nOptions REDIS_* are using only where redis are installed.\nIf REDIS_CACHE_SIZE <= 0 - search queries will storing in redis infinitely.\nIf REDIS_CACHE_SIZE == 1 - redis isn't using\nIf REDIS_CACHE_SIZE >= 2 - search queries and visits are storing in cache, but after REDIS_CACHE_SIZE objects in cache they will be saved in DB\n\nIf response status code in REMOVE_ON_STATUS all visits with path == current request.path are deleteing.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://django-search-statistic.beslave.net/", "keywords": null, "license": "GNU v2 License", "maintainer": null, "maintainer_email": null, "name": "django-search-statistic", "package_url": "https://pypi.org/project/django-search-statistic/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-search-statistic/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://django-search-statistic.beslave.net/" }, "release_url": "https://pypi.org/project/django-search-statistic/0.0.2/", "requires_dist": null, "requires_python": null, "summary": "Provide search statistic for Django framework.", "version": "0.0.2" }, "last_serial": 877792, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "574ed33b81aa691cdfe59a5c0a878e13", "sha256": "300fd618cb4a6fb82dc732e9b9a0b2e0e1bea17e658d3463dea9a232342a9692" }, "downloads": -1, "filename": "django-search-statistic-0.0.1.tar.gz", "has_sig": false, "md5_digest": "574ed33b81aa691cdfe59a5c0a878e13", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15684, "upload_time": "2013-09-30T06:52:11", "url": "https://files.pythonhosted.org/packages/e8/d6/2b2e6573c32e26f5d3073609071afec0d0a3ba851601a4de271d1d9a5fed/django-search-statistic-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "a3ab3ade89fad7c2216e1cefc4148316", "sha256": "bc8f1e3b797c1587b6da31e7842aa0f2c09f8250ac993114a3112da147f4a868" }, "downloads": -1, "filename": "django-search-statistic-0.0.2.tar.gz", "has_sig": false, "md5_digest": "a3ab3ade89fad7c2216e1cefc4148316", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15703, "upload_time": "2013-10-01T12:31:41", "url": "https://files.pythonhosted.org/packages/43/89/b2be5595feb268c3376e23ae529ba0fb77aadf9cb8b0e22568d4d89c3923/django-search-statistic-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a3ab3ade89fad7c2216e1cefc4148316", "sha256": "bc8f1e3b797c1587b6da31e7842aa0f2c09f8250ac993114a3112da147f4a868" }, "downloads": -1, "filename": "django-search-statistic-0.0.2.tar.gz", "has_sig": false, "md5_digest": "a3ab3ade89fad7c2216e1cefc4148316", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15703, "upload_time": "2013-10-01T12:31:41", "url": "https://files.pythonhosted.org/packages/43/89/b2be5595feb268c3376e23ae529ba0fb77aadf9cb8b0e22568d4d89c3923/django-search-statistic-0.0.2.tar.gz" } ] }