{ "info": { "author": "Randall Degges", "author_email": "rdegges@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# django-heroku-postgresify\n\nAutomatic Django database configuration on Heroku.\n\n\n![What if configuring PostgreSQL is really easy?](https://github.com/rdegges/django-heroku-postgresify/raw/master/assets/postgresify.jpg)\n\n\n## Install\n\nTo install ``django-heroku-postgresify``, simply run\n``pip install django-heroku-postgresify`` and you'll get the latest version\ninstalled automatically.\n\n\n## Usage\n\nModify your Django ``settings.py`` file, and set:\n\n``` python\nfrom postgresify import postgresify\n\nDATABASES = postgresify()\n```\n\nThat's it.\n\nDepending on the Heroku PostgreSQL databases you've got installed, your\n``DATABASES`` configuration will automatically be setup to use them.\n\nFor example, let's assume you've got the following environment variables set on\nHeroku (you can view the list of all environment variables by running ``heroku\nconfig``):\n\n- ``HEROKU_POSTGRESQL_BLUE_URL``\n- ``HEROKU_POSTGRESQL_RED_URL``\n- ``HEROKU_SHARED_POSTGRESQL_RED_URL``\n- ``SHARED_DATABASE_URL``\n- ``DATABASE_URL``\n\nYour ``DATABASES`` setting would be:\n\n``` python\nDATABASES = {\n 'default': {\n # DATABASE_URL configs here\n },\n 'SHARED': {\n # SHARED_DATABASE_URL configs here\n },\n 'BLUE': {\n # HEROKU_POSTGRESQL_BLUE_URL configs here\n },\n 'RED': {\n # HEROKU_POSTGRESQL_RED_URL configs here\n },\n 'SHARED_RED': {\n # HEROKU_SHARED_POSTGRESQL_RED_URL configs here\n },\n}\n```\n\n\n## References\n\nIf you're confused, you should probably read:\n\n- [Heroku's Getting Started Guide](http://devcenter.heroku.com/articles/django)\n- [Deploy Django's PostgreSQL Section](http://www.deploydjango.com/postgresql/index.html)\n\n\n## Tests\n\n[![Build Status](https://secure.travis-ci.org/rdegges/django-heroku-postgresify.png?branch=master)](http://travis-ci.org/rdegges/django-heroku-postgresify)\n\nWant to run the tests? No problem:\n\n``` bash\n$ git clone git://github.com/rdegges/django-heroku-postgresify.git\n$ cd django-heroku-postgresify\n$ python setup.py develop\n...\n$ pip install -r requirements.txt # Install test dependencies.\n$ nosetests\n.............\n----------------------------------------------------------------------\nRan 13 tests in 0.166s\n\nOK\n```", "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/rdegges/django-heroku-postgresify", "keywords": "django heroku cloud postgresql postgres db database awesome epic", "license": "UNLICENSE", "maintainer": null, "maintainer_email": null, "name": "django-heroku-postgresify", "package_url": "https://pypi.org/project/django-heroku-postgresify/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-heroku-postgresify/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/rdegges/django-heroku-postgresify" }, "release_url": "https://pypi.org/project/django-heroku-postgresify/0.4/", "requires_dist": null, "requires_python": null, "summary": "Automatic Django database configuration on Heroku.", "version": "0.4" }, "last_serial": 1513585, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "bc2e8318b1860e787953ecc3c8318e61", "sha256": "4b702cfcf1542041112eb18229801c539fe19e3493aaf2d4a0fa83d9cef72f20" }, "downloads": -1, "filename": "django-heroku-postgresify-0.1.tar.gz", "has_sig": false, "md5_digest": "bc2e8318b1860e787953ecc3c8318e61", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 74423, "upload_time": "2012-05-01T11:36:44", "url": "https://files.pythonhosted.org/packages/40/f4/dc29a50ab272d1c3e401a6c7494d19856d7733d535dca4a80abcc838352c/django-heroku-postgresify-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "51b8e4cd04888ac7819d2540899f3645", "sha256": "fbe4ceee77595012f9c22ffe2f7c2f64cb30c80c0f42f52e5d20accc8d3cd7fe" }, "downloads": -1, "filename": "django-heroku-postgresify-0.2.tar.gz", "has_sig": false, "md5_digest": "51b8e4cd04888ac7819d2540899f3645", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 75363, "upload_time": "2012-05-02T05:03:14", "url": "https://files.pythonhosted.org/packages/8c/8b/76cc5a24d843b9b8bbcf8a8cc6131edbe300050f66b019722c0de34b0075/django-heroku-postgresify-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "cdb306bc03fac7f4a4d1d6aa30615eab", "sha256": "b686916081741199781e49b539b3a98f14fff2d569b42a41f89d8f0af76e7911" }, "downloads": -1, "filename": "django-heroku-postgresify-0.3.tar.gz", "has_sig": false, "md5_digest": "cdb306bc03fac7f4a4d1d6aa30615eab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 75044, "upload_time": "2012-12-21T23:03:34", "url": "https://files.pythonhosted.org/packages/d6/e2/ef3b73543dd3dd09f3b8f1438bc8d64df2de83d0b701120aadbdb3afa0c8/django-heroku-postgresify-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "8397e1851063c44d8354ca973fc57a80", "sha256": "7f2a10ed3db976cf20d45f4a7b335260bf701514111f7ef202a612833c2c30f4" }, "downloads": -1, "filename": "django-heroku-postgresify-0.4.tar.gz", "has_sig": false, "md5_digest": "8397e1851063c44d8354ca973fc57a80", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 75025, "upload_time": "2015-04-20T21:17:28", "url": "https://files.pythonhosted.org/packages/56/ee/00e7a6eb9bb1eb368c089f719609973903030e853e014c18b5f3c040bcc0/django-heroku-postgresify-0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8397e1851063c44d8354ca973fc57a80", "sha256": "7f2a10ed3db976cf20d45f4a7b335260bf701514111f7ef202a612833c2c30f4" }, "downloads": -1, "filename": "django-heroku-postgresify-0.4.tar.gz", "has_sig": false, "md5_digest": "8397e1851063c44d8354ca973fc57a80", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 75025, "upload_time": "2015-04-20T21:17:28", "url": "https://files.pythonhosted.org/packages/56/ee/00e7a6eb9bb1eb368c089f719609973903030e853e014c18b5f3c040bcc0/django-heroku-postgresify-0.4.tar.gz" } ] }