{ "info": { "author": "Daniel Kaufhold", "author_email": "daniel.kaufhold@bitmazk.com", "bugtrack_url": null, "classifiers": [], "description": "Django Download Stats\n=====================\n\nA reusable Django app to keep track of file download statistics.\n\nInstallation\n------------\n\nTo get the latest stable release from PyPi::\n\n $ pip install django-download-stats\n\nTo get the latest commit from GitHub::\n\n $ pip install -e git://github.com/bitmazk/django-download-stats.git#egg=download_stats\n\n\nAdd ``download_stats`` to your ``INSTALLED_APPS``::\n\n INSTALLED_APPS = (\n ...,\n 'download_stats',\n )\n\nDefine ``DOWNLOAD_URL`` in your settings if you want to override the default\nof ``/downloads/``::\n\n DOWNLOAD_URL = \"/my-download/\"\n\n\nAdd the ``download_stats`` URLs to your ``urls.py``::\n\n urlpatterns = patterns('',\n ...\n url(r'^myurlname/', include('download_stats.urls')),\n )\n\nAn important note is, that the ``download_stats.urls`` will automatically\nprepend the ``DOWNLOAD_URL`` setting. So the following urls example would\nresult in urls formatted like ``example.com/downloads/filename.jpg``\nconsidering if you would leave the ``DOWNLOAD_URL`` on its default value\n``/downloads/``.\n\n urlpatterns = patterns('',\n ...\n url(r'^', include('download_stats.urls')),\n )\n\nWhy this setting anyway then?\nBecause now you will add the context processor::\n\n TEMPLATE_CONTEXT_PROCESSORS = [\n ...\n 'download_stats.context_processors.download_url',\n ]\n\nThis will add the ``DOWNLOAD_URL`` variable to all templates.\n\nDon't forget to migrate your database::\n\n ./manage.py migrate download_stats\n\n\nUsage\n-----\n\nWith our context processor adding ``DOWNLOAD_URL`` you can basically use the\nview that comes with download stats just like you would do it before, just\nreplacing ``MEDIA_URL`` with ``DOWNLOAD_URL``::\n\n Click to download my file\n\nIt will then automatically count how often ``files/myfile.pdf`` was clicked.\n\nYou can then view the individual file counts in the download stats admin.\n\n\nContribute\n----------\n\nIf you want to contribute to this project, please perform the following steps::\n\n # Fork this repository\n # Clone your fork\n $ mkvirtualenv -p python2.7 django-download-stats\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://git://github.com/bitmazk/django-download-stats.git#egg=download_stats", "keywords": "django,reusable,download,statistics", "license": "The MIT License", "maintainer": null, "maintainer_email": null, "name": "django-download-stats", "package_url": "https://pypi.org/project/django-download-stats/", "platform": "OS Independent", "project_url": "https://pypi.org/project/django-download-stats/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://git://github.com/bitmazk/django-download-stats.git#egg=download_stats" }, "release_url": "https://pypi.org/project/django-download-stats/0.2/", "requires_dist": null, "requires_python": null, "summary": "A reusable Django app to track download statistis.", "version": "0.2" }, "last_serial": 807096, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "b6f529a42a54d27a23e6b8d90835977d", "sha256": "1dfc5165d09ee886a9b0f7df0a897799b07a0dd803c8c936f2b3f5809349db4c" }, "downloads": -1, "filename": "django-download-stats-0.2.tar.gz", "has_sig": false, "md5_digest": "b6f529a42a54d27a23e6b8d90835977d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8072, "upload_time": "2013-07-03T13:39:05", "url": "https://files.pythonhosted.org/packages/8c/24/1d1523d269e51729a6b6e279c4636867ca6a7dc537a98dce7d498d40d8da/django-download-stats-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b6f529a42a54d27a23e6b8d90835977d", "sha256": "1dfc5165d09ee886a9b0f7df0a897799b07a0dd803c8c936f2b3f5809349db4c" }, "downloads": -1, "filename": "django-download-stats-0.2.tar.gz", "has_sig": false, "md5_digest": "b6f529a42a54d27a23e6b8d90835977d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8072, "upload_time": "2013-07-03T13:39:05", "url": "https://files.pythonhosted.org/packages/8c/24/1d1523d269e51729a6b6e279c4636867ca6a7dc537a98dce7d498d40d8da/django-download-stats-0.2.tar.gz" } ] }