{ "info": { "author": "Ben Slavin , Denilson S\u00e1 , Fingul ", "author_email": "UNKNOWN", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Topic :: Database" ], "description": "django_db_prefix\n================\n\nProject goal\n------------\n\nAllow specification of a global database table name prefix.\n\nReason for the project\n----------------------\n\n1. Some (external) projects automatically use a database prefix for \n interaction with a database. This is particularly common in implementations\n of the Active Record pattern.\n\n2. It is possible to define an explicit database table name in the Meta\n class on a model; however, this is not as easily accomplished when dealing\n with a third-party application. By providing a high-level interface for\n adding prefixes there is a simple, consistent way to achieve this goal other\n than forking the code or ad-hoc monkey patching.\n\nInstallation\n------------\n\n1. Install using pip:\n\n\t\tpip install django-db-prefix\n\n2. Add django_db_prefix at the top of your INSTALLED_APPS list. It is\n recommended that django_db_prefix is the first listed application, but it\n is essential that it be loaded before the initialization of any model you\n expect to be modified.\n\n\t\tINSTALLED_APPS = ['django_db_prefix',] + INSTALLED_APPS\n\nConfiguration\n-------------\n\n\nGlobal Prefix\n=============\n\nTo add a common prefix to all models simply set `DB_PREFIX` to the string that\nyou want to be prepended.\n\n\tDB_PREFIX = \"foo_\"\n\nFor example, for the model bar_app.models.Baz the default table would be:\n`bar_app_baz`\n\nBy setting `DB_PREFIX` to `foo_`, the table would be `foo_bar_app_baz`.", "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/fingul/django-db-prefix", "keywords": "django database", "license": "BSD licence, see LICENCE", "maintainer": null, "maintainer_email": null, "name": "django-db-prefix", "package_url": "https://pypi.org/project/django-db-prefix/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-db-prefix/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/fingul/django-db-prefix" }, "release_url": "https://pypi.org/project/django-db-prefix/1.0.5/", "requires_dist": null, "requires_python": null, "summary": "Allow specification of a global database table name prefix.", "version": "1.0.5" }, "last_serial": 2028409, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "4974e8fe72a863e189f02acde7892238", "sha256": "c2b885e42404c9038718cd76c94a3d7bea8523d247b86c7a7ca27f726a3e38b7" }, "downloads": -1, "filename": "django-db-prefix-1.0.tar.gz", "has_sig": false, "md5_digest": "4974e8fe72a863e189f02acde7892238", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1829, "upload_time": "2016-03-26T14:46:19", "url": "https://files.pythonhosted.org/packages/bc/5c/77306f070b09f0e788c47c984a15c402fbb40aa1b2080d30888a5367def1/django-db-prefix-1.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "3255796f5d1919444540855042e2b6cb", "sha256": "4cf36ed1d6629f2b96e164e51807e83a8bac8f9bc7e59eb7a4909240fca6210a" }, "downloads": -1, "filename": "django-db-prefix-1.0.1.tar.gz", "has_sig": false, "md5_digest": "3255796f5d1919444540855042e2b6cb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1876, "upload_time": "2016-03-26T14:51:34", "url": "https://files.pythonhosted.org/packages/9c/b5/5f65571f24543cc01b26a8fd06d5ffac8e754073f3c1f42e1a8fa3b88e33/django-db-prefix-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "bf46ca1304d5182a3e3b58a928cbdf9f", "sha256": "d886378e9ca14d5fa5cea3a92f4d1af3f41db2d9da0e2468c43324a9dd0a3e71" }, "downloads": -1, "filename": "django-db-prefix-1.0.2.tar.gz", "has_sig": false, "md5_digest": "bf46ca1304d5182a3e3b58a928cbdf9f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1867, "upload_time": "2016-03-26T14:52:47", "url": "https://files.pythonhosted.org/packages/15/8b/9d34e12c58d06d9adddf2a109d81bf94fabf95354a100a1de6f630229d1d/django-db-prefix-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "7d3578a45cb27091484a3cce2d8363f5", "sha256": "fad493a4f4190a507647018186b504d67df96ba1989c2730d6bc776224d57772" }, "downloads": -1, "filename": "django-db-prefix-1.0.3.tar.gz", "has_sig": false, "md5_digest": "7d3578a45cb27091484a3cce2d8363f5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1864, "upload_time": "2016-03-26T14:56:43", "url": "https://files.pythonhosted.org/packages/06/91/781aadb866552a43694a676fd5b113fe2fc664317d75569b4f5a9b47bf68/django-db-prefix-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "e6a6e366763412e7dd13886674164896", "sha256": "28a077286bfb104f311a535d0e9bd51b0b07bf2de53387b2b00e3e5aa8ad74aa" }, "downloads": -1, "filename": "django-db-prefix-1.0.4.tar.gz", "has_sig": false, "md5_digest": "e6a6e366763412e7dd13886674164896", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2049, "upload_time": "2016-03-26T14:58:08", "url": "https://files.pythonhosted.org/packages/4c/73/1e7e8c2cf0b683ba411c386ed7b62fa89947fd74dd0a2bad22fd14ee7743/django-db-prefix-1.0.4.tar.gz" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "0020bf509a2655c3e2a2d540951b060b", "sha256": "6ba9fa8bfecd44838f8c4e6ed9650057dcde8067d833c0f869ec112af58bd9bb" }, "downloads": -1, "filename": "django-db-prefix-1.0.5.tar.gz", "has_sig": false, "md5_digest": "0020bf509a2655c3e2a2d540951b060b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2054, "upload_time": "2016-03-26T15:05:52", "url": "https://files.pythonhosted.org/packages/f9/ee/a5c4d94465869b853ce3973f20be5f0804a865252e8dd2cf6503682d7145/django-db-prefix-1.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0020bf509a2655c3e2a2d540951b060b", "sha256": "6ba9fa8bfecd44838f8c4e6ed9650057dcde8067d833c0f869ec112af58bd9bb" }, "downloads": -1, "filename": "django-db-prefix-1.0.5.tar.gz", "has_sig": false, "md5_digest": "0020bf509a2655c3e2a2d540951b060b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2054, "upload_time": "2016-03-26T15:05:52", "url": "https://files.pythonhosted.org/packages/f9/ee/a5c4d94465869b853ce3973f20be5f0804a865252e8dd2cf6503682d7145/django-db-prefix-1.0.5.tar.gz" } ] }