{ "info": { "author": "Tobias Lorenz", "author_email": "tobias.lorenz@bitmazk.com", "bugtrack_url": null, "classifiers": [], "description": "django-traces\n=============\n\nA reusable app to track view hits.\n\nInstallation\n------------\n\nTo get the latest stable release from PyPi\n\n.. code-block:: bash\n\n $ pip install django-traces\n\nTo get the latest commit from GitHub\n\n.. code-block:: bash\n\n $ pip install -e git+git://github.com/bitmazk/django-traces.git#egg=traces\n\nAdd ``traces`` to your ``INSTALLED_APPS``\n\n.. code-block:: python\n\n INSTALLED_APPS = (\n ...,\n 'traces',\n )\n\nAdd the ``traces`` URLs to your ``urls.py``\n\n.. code-block:: python\n\n urlpatterns = patterns('',\n ...\n url(r'^traces/', include('traces.urls')),\n )\n\nDon't forget to migrate your database\n\n.. code-block:: bash\n\n ./manage.py migrate traces\n\n\nUsage\n-----\n\nIf you want to track a certain view just add our middleware::\n\n MIDDLEWARE_CLASSES = (\n ...\n 'traces.middleware.TracesMiddleware',\n )\n\n...and add the view name/url name to the setting TRACED_VIEWS. If you have\nadded a view like this::\n\n url(r'^$', TemplateView.as_view(template_name='test.html'), name='test_view'),\n\n...your setting should look like::\n\n TRACED_VIEWS = ['test_view', ]\n\nThe app will now track all visits to this view.\n\n\nTemplate tags\n-------------\n\nget_view_hits\n+++++++++++++\n\nTo get the current amount of requests for this view::\n\n {% load traces_tags %}\n {% get_view_hits as hits %}\n Hits: {{ hits }}\n\nYou can also provide the view name to get any view hits::\n\n {% load traces_tags %}\n {% get_view_hits 'view_name' as hits %}\n Hits: {{ hits }}\n\n {% get_view_hits 'model_view_name' object as model_view_hits %}\n Hits: {{ model_view_hits }}\n\n\nSettings\n--------\n\nTRACED_VIEWS\n++++++++++++\n\nDefault: []\n\nList all view names to track.\n\n\nContribute\n----------\n\nIf you want to contribute to this project, please perform the following steps\n\n.. code-block:: bash\n\n # Fork this repository\n # Clone your fork\n $ mkvirtualenv -p python2.7 django-traces\n $ python setup.py install\n $ pip install -r dev_requirements.txt\n\n $ git co -b feature_branch master\n # Implement your feature and tests\n $ git add . && git commit\n $ git push -u origin feature_branch\n # Send us a pull request for your feature branch", "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/bitmazk/django-traces", "keywords": "django,app,reusable,traces,tracking,analytics", "license": "The MIT License", "maintainer": null, "maintainer_email": null, "name": "django-traces", "package_url": "https://pypi.org/project/django-traces/", "platform": "OS Independent", "project_url": "https://pypi.org/project/django-traces/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/bitmazk/django-traces" }, "release_url": "https://pypi.org/project/django-traces/0.4/", "requires_dist": null, "requires_python": null, "summary": "A reusable app to track view hits", "version": "0.4" }, "last_serial": 1273379, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "3a98d74e005baa7a8e8dc9e696cbbc2a", "sha256": "6df8b20315374aee3828397f51eeb6a549ee0c353c714ef984c2a721cbfc7dc5" }, "downloads": -1, "filename": "django-traces-0.1.tar.gz", "has_sig": false, "md5_digest": "3a98d74e005baa7a8e8dc9e696cbbc2a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10798, "upload_time": "2014-05-14T11:55:20", "url": "https://files.pythonhosted.org/packages/c8/3d/d3fec992526d4f4579139d8e06208d16fce49216337bf6514560840b8afa/django-traces-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "921e399afc54d4bbf3e1ec7d3575043c", "sha256": "d10c96c3c2b4ebc25aac94295802f20be7aadc5d4bc817b134c0c1b464f52f7c" }, "downloads": -1, "filename": "django-traces-0.2.tar.gz", "has_sig": false, "md5_digest": "921e399afc54d4bbf3e1ec7d3575043c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10792, "upload_time": "2014-10-17T03:02:35", "url": "https://files.pythonhosted.org/packages/b2/8c/647ec52451759d5eb132566d0daa0ba4eae79a918874d63c2897ca345aa3/django-traces-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "65d4173c6dcc8cd986bfadfa32a75a7f", "sha256": "85bad87e56aef9691f74057a9c3550c1d1076cf2eaedabfeec4fad77974d026a" }, "downloads": -1, "filename": "django-traces-0.3.tar.gz", "has_sig": false, "md5_digest": "65d4173c6dcc8cd986bfadfa32a75a7f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10846, "upload_time": "2014-10-17T03:33:28", "url": "https://files.pythonhosted.org/packages/28/a0/feb999570e41e3251ae5a603d4d6313702113bcf383cda4e616b2cdf0bc6/django-traces-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "fdef2512b2568f1238e94d611bfc5bdd", "sha256": "41bd384e8d9a4748f5dc2eae56cb684b7eef9be593731910d7b555362857455b" }, "downloads": -1, "filename": "django-traces-0.4.tar.gz", "has_sig": false, "md5_digest": "fdef2512b2568f1238e94d611bfc5bdd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10859, "upload_time": "2014-10-17T04:22:57", "url": "https://files.pythonhosted.org/packages/4f/a7/f85f7f2dce038df95197d0a7d9e6647e94cc0cdf7dffbb818fae28317282/django-traces-0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "fdef2512b2568f1238e94d611bfc5bdd", "sha256": "41bd384e8d9a4748f5dc2eae56cb684b7eef9be593731910d7b555362857455b" }, "downloads": -1, "filename": "django-traces-0.4.tar.gz", "has_sig": false, "md5_digest": "fdef2512b2568f1238e94d611bfc5bdd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10859, "upload_time": "2014-10-17T04:22:57", "url": "https://files.pythonhosted.org/packages/4f/a7/f85f7f2dce038df95197d0a7d9e6647e94cc0cdf7dffbb818fae28317282/django-traces-0.4.tar.gz" } ] }