{ "info": { "author": "Antti Kaihola (2General Ltd.)", "author_email": "antti@2general.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP" ], "description": "===============\n django-grains\n===============\n\nThis reusable Django app lets you\nstore snippets of text (\"grains\") in the database\nkeyed by arbitrary strings.\nIt's the same idea implemented previously \nin django-chunks_, django-flatblocks_, django-tinycontent_\nand others_.\n\nUsage\n=====\n\nInstall with ``pip install django-grains``.\n\nAdd ``grains`` to ``INSTALLED_APPS`` in your project's Django settings.\n\nRun ``manage.py syncdb`` or ``manage.py migrate`` (if you're using South)\nto create the database tables.\n\nIn your templates, create placeholders for grains::\n\n {% load grains_tags %}\n\n {% grain \"front-page-title\" %}The default title of the front page{% endgrain %}\n\n {% grain \"front-page-subtitle\" \"text/plain\" %}The default subtitle of the front page{% endgrain %}\n\n {% grain \"front-page-content\" \"text/html\" %}\n
This is the default HTML content of the front page.
\n {% endgrain %}\n\nThe first argument to ``{% grain %}`` is the unique identifier of the grain.\nThe second argument is the content type\nwhich could be used to choose the editor widget for the value\nin Django's admin interface.\nThe second argument can be omitted in which case it defaults to ``text/plain``.\n\nA WYSIWYG editor is automatically used in the admin interface\nfor grains with the ``text/html`` content type,\nif you have django-wysiwyg_ installed and added to ``INSTALLED_APPS``.\n\n.. _django-chunks: https://github.com/clintecker/django-chunks\n.. _django-flatblocks: https://github.com/zerok/django-flatblocks\n.. _django-tinycontent: https://github.com/dominicrodger/django-tinycontent\n.. _others: https://www.djangopackages.com/grids/g/layout/\n.. _django-wysiwyg: https://github.com/pydanny/django-wysiwyg\n", "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/2general/django-grains", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "django-grains", "package_url": "https://pypi.org/project/django-grains/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-grains/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/2general/django-grains" }, "release_url": "https://pypi.org/project/django-grains/0.2.2/", "requires_dist": null, "requires_python": null, "summary": "Define content fragments in Django templates and store their contents in the database. This is yet another take on the idea previously implemented in django-flatblocks, django-chunks etc.", "version": "0.2.2" }, "last_serial": 754958, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "ecbf6d12d5aa6d57587cb1cd439b8e91", "sha256": "2c644eff5dd6abfb16b9468c2a7d22be8d17f0bfd0cdb0437c0f9f4cefec55e2" }, "downloads": -1, "filename": "django-grains-0.1.tar.gz", "has_sig": false, "md5_digest": "ecbf6d12d5aa6d57587cb1cd439b8e91", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1998, "upload_time": "2013-06-05T09:49:55", "url": "https://files.pythonhosted.org/packages/6e/a7/20efedd7b31ab6cceb38e24f68b6a32734331a3b67d16e15479848d98309/django-grains-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "c377ae36a44de27d46bbb26bac276d8c", "sha256": "632afd87789d240409035700a78f15e802bae9290e2971c312e356a00963a848" }, "downloads": -1, "filename": "django-grains-0.1.1.tar.gz", "has_sig": false, "md5_digest": "c377ae36a44de27d46bbb26bac276d8c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2536, "upload_time": "2013-06-05T09:51:06", "url": "https://files.pythonhosted.org/packages/de/9f/3bc0059ceda3824b0d12a35e627daa73c166fb0297100ecaa2ff56cad3cd/django-grains-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "20303979b66b1e0fd3bf9004e695c187", "sha256": "1defc7a8142f3d122f95e27de2a13737540ffecd8b4a93ad01d2ee619f3edbd1" }, "downloads": -1, "filename": "django-grains-0.1.2.tar.gz", "has_sig": false, "md5_digest": "20303979b66b1e0fd3bf9004e695c187", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3088, "upload_time": "2013-06-05T11:42:55", "url": "https://files.pythonhosted.org/packages/ab/49/34f7c158057bbcfe6069cd755eebbf46b636da9bf75e0d7cb096944317ef/django-grains-0.1.2.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "9d937e603d6dc1a7437d51324cfa27ea", "sha256": "fcb6c467fad7d54fca6ed72c562a1dd80fc13e98b41d744f6a808b20d79f35fd" }, "downloads": -1, "filename": "django-grains-0.2.tar.gz", "has_sig": false, "md5_digest": "9d937e603d6dc1a7437d51324cfa27ea", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3337, "upload_time": "2013-06-06T10:32:59", "url": "https://files.pythonhosted.org/packages/8c/d4/be434c7f41064700404500e1ea57fcd81345dd9fe147faa904efdb7d6c44/django-grains-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "2cd89ba704997029e7d2fe9e9af8ad54", "sha256": "e0ac15fbb6e0e6512850bfe08d8de00ca696d3f10d713f6adad768da2593cb1c" }, "downloads": -1, "filename": "django-grains-0.2.1.tar.gz", "has_sig": false, "md5_digest": "2cd89ba704997029e7d2fe9e9af8ad54", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3420, "upload_time": "2013-06-06T11:16:20", "url": "https://files.pythonhosted.org/packages/bd/d2/5edc0e66dce578aaf023eabaa856bd0f2dea98f255577f3985b63ed3aaea/django-grains-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "884111818742040e83815239187e4150", "sha256": "f51d46060b8219529c3772917f5b0ef4e84d27dde735d4a9d922df4ac5535bfb" }, "downloads": -1, "filename": "django-grains-0.2.2.tar.gz", "has_sig": false, "md5_digest": "884111818742040e83815239187e4150", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3542, "upload_time": "2013-06-06T11:36:48", "url": "https://files.pythonhosted.org/packages/9b/74/5b1c3e740c97d0a4a8aa63f9850b661c3c8485286fc606f517aeea44a827/django-grains-0.2.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "884111818742040e83815239187e4150", "sha256": "f51d46060b8219529c3772917f5b0ef4e84d27dde735d4a9d922df4ac5535bfb" }, "downloads": -1, "filename": "django-grains-0.2.2.tar.gz", "has_sig": false, "md5_digest": "884111818742040e83815239187e4150", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3542, "upload_time": "2013-06-06T11:36:48", "url": "https://files.pythonhosted.org/packages/9b/74/5b1c3e740c97d0a4a8aa63f9850b661c3c8485286fc606f517aeea44a827/django-grains-0.2.2.tar.gz" } ] }