{ "info": { "author": "Matthew Farver", "author_email": "mfarver@tivix.com", "bugtrack_url": null, "classifiers": [ "Framework :: Django", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "Operating System :: OS Independent", "Topic :: Software Development" ], "description": "=======================\ndjango-common-helpers\n=======================\n\nOverview\n---------\n\nDjango-common consists of the following things:\n\t\n\t- A middleware that makes sure your web-app runs either on or without 'www' in the domain.\n\t\n\t- A ``SessionManagerBase`` base class, that helps in keeping your session related code object-oriented and clean! See session.py for usage details.\n\t\n\t- An ``EmailBackend`` for authenticating users based on their email, apart from username.\n\t\n\t- Some custom db fields that you can use in your models including a ``UniqueHashField`` and ``RandomHashField``.\n\t\n\t- Bunch of helpful functions in helper.py\n\t\n\t- A ``render_form_field`` template tag that makes rendering form fields easy and DRY.\n\t\n\t- A couple of dry response classes: ``JsonResponse`` and ``XMLResponse`` in the django_common.http that can be used in views that give json/xml responses.\n\n\nInstallation\n-------------\n\n- Install django_common (ideally in your virtualenv!) using pip or simply getting a copy of the code and putting it in a directory in your codebase.\n\n- Add ``django_common`` to your Django settings ``INSTALLED_APPS``::\n\t\n\tINSTALLED_APPS = [\n # ...\n \"django_common\",\n ]\n\n- Add the following to your settings.py with appropriate values:\n\t\n\t- IS_DEV\n\t- IS_PROD\n\t- DOMAIN_NAME\n\t- WWW_ROOT\n\n- Add ``common_settings`` to your Django settings ``TEMPLATE_CONTEXT_PROCESSORS``::\n\t\n\tTEMPLATE_CONTEXT_PROCESSORS = [\n\t\t# ...\n\t\t\"common_settings\",\n\t]\n\n- Add ``EmailBackend`` to the Django settings ``AUTHENTICATION_BACKENDS``::\n\t\n\tAUTHENTICATION_BACKENDS = (\n\t\t'django_common.auth_backends.EmailBackend',\n\t\t'django.contrib.auth.backends.ModelBackend'\n\t)\n\n- Add ``WWWRedirectMiddleware`` if required to the list of middlewares::\n\t\n\tMIDDLEWARE_CLASSES = [\n\t\t# ...\n\t\t\"WWWRedirectMiddleware\",\n\t]\n\n\nThis open-source app is brought to you by Tivix, Inc. ( http://tivix.com/ )", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/tivix/django-common", "keywords": "django", "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "django-common-tivix", "package_url": "https://pypi.org/project/django-common-tivix/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-common-tivix/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/tivix/django-common" }, "release_url": "https://pypi.org/project/django-common-tivix/0.1.2/", "requires_dist": null, "requires_python": null, "summary": "Common things every Django app needs!", "version": "0.1.2" }, "last_serial": 789339, "releases": { "0.1": [ { "comment_text": "built for Linux-3.0.0-16-generic-i686-with-glibc2.3.4", "digests": { "md5": "c98841cf6441dedc686d7725ee53d12a", "sha256": "e330acb71998ec54d87fab79d2fb048d9088ea29e1e37526d4f9057303f1846b" }, "downloads": -1, "filename": "django-common-tivix-0.1.linux-i686.tar.gz", "has_sig": false, "md5_digest": "c98841cf6441dedc686d7725ee53d12a", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 22270, "upload_time": "2012-03-12T00:25:54", "url": "https://files.pythonhosted.org/packages/48/8e/085c2f32f267bf4c9e1796706b5b5668f51923f963b05215bb5a659decf3/django-common-tivix-0.1.linux-i686.tar.gz" } ], "0.1.1": [ { "comment_text": "built for Linux-3.0.0-16-generic-i686-with-glibc2.3.4", "digests": { "md5": "cfed0ca493e6f223ae7cb5f403f714a9", "sha256": "f64b839050dc204227d199dc0aa10a63f37626469a4e9e71821ef6409928d4cf" }, "downloads": -1, "filename": "django-common-tivix-0.1.1.linux-i686.tar.gz", "has_sig": false, "md5_digest": "cfed0ca493e6f223ae7cb5f403f714a9", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 22283, "upload_time": "2012-03-12T00:28:41", "url": "https://files.pythonhosted.org/packages/3b/34/724b14f1408058e8f3000ad8bf0476dddcfb9217cd7aa64d4d94af983fc3/django-common-tivix-0.1.1.linux-i686.tar.gz" } ], "0.1.2": [ { "comment_text": "built for Linux-3.0.0-16-generic-i686-with-glibc2.3.4", "digests": { "md5": "245aab70b1788cf6b96f64da64ca1bd1", "sha256": "822defe276c33fd0d8e4726fdb77f33caaca696abbbbb7afa4c74246d9830cab" }, "downloads": -1, "filename": "django-common-tivix-0.1.2.linux-i686.tar.gz", "has_sig": false, "md5_digest": "245aab70b1788cf6b96f64da64ca1bd1", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 22285, "upload_time": "2012-03-12T00:29:59", "url": "https://files.pythonhosted.org/packages/85/0a/8f519dd7d267167fa6bdc8295c4b7706d2bcd18badb960d4379e6154e389/django-common-tivix-0.1.2.linux-i686.tar.gz" } ] }, "urls": [ { "comment_text": "built for Linux-3.0.0-16-generic-i686-with-glibc2.3.4", "digests": { "md5": "245aab70b1788cf6b96f64da64ca1bd1", "sha256": "822defe276c33fd0d8e4726fdb77f33caaca696abbbbb7afa4c74246d9830cab" }, "downloads": -1, "filename": "django-common-tivix-0.1.2.linux-i686.tar.gz", "has_sig": false, "md5_digest": "245aab70b1788cf6b96f64da64ca1bd1", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 22285, "upload_time": "2012-03-12T00:29:59", "url": "https://files.pythonhosted.org/packages/85/0a/8f519dd7d267167fa6bdc8295c4b7706d2bcd18badb960d4379e6154e389/django-common-tivix-0.1.2.linux-i686.tar.gz" } ] }