{ "info": { "author": "asyncee", "author_email": "UNKNOWN", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Topic :: Internet :: WWW/HTTP :: Site Management" ], "description": "Django-cmstemplates is efficient templates-in-db implementation.\n\n---------------\n\n|python| |pypi| |travis| |coveralls| |license|\n\n---------------\n\n\nApplication is aimed to support python 3.4+ and django 1.9+.\n\n\nFeatures\n========\n\n1. Template blocks can be edited in your admin\n2. Django's cache machinery is actively used\n3. Template group autocreation (if group is not exist)\n4. Codemirror widget support\n5. Ability to view template only for superuser, useful when editing\n in production.\n\n\nInstallation\n============\n\n1. Add ``cmstemplates`` to ``INSTALLED_APPS``\n2. Run ``./manage.py migrate cmstemplates``\n3. Go to admin and create new group template with name *test-group*\n You can skip this step for now, if you want template to be\n auto-created.\n4. Add this group to your template with following tag::\n\n {% load cmstemplates_tags %}\n\n {% cms_group \"test-group\" %}\n\n If you skipped step three, then template group *test-group*\n will be created automatically.\n\n5. Create some templates for this group in admin.\n6. Refresh target site page and see your templates content.\n\n\nUsing codemirror widget\n=======================\n\nAdd to your settings::\n\n CMSTEMPLATES_USE_CODEMIRROR = True\n\nInstall codemirror widget:\n\n1. source env/bin/activate\n2. pip install django-codemirror-widget\n3. cd project_name/static/vendor\n4. wget http://codemirror.net/codemirror.zip\n5. unzip codemirror.zip\n6. mv codemirror-4.2 codemirror\n7. Add to settings::\n\n CODEMIRROR_PATH = 'vendor/codemirror'\n CODEMIRROR_THEME = 'default'\n CODEMIRROR_CONFIG = {'lineNumbers': True}\n\n\nFinal settings should look like this::\n\n # cmstemplates\n CMSTEMPLATES_USE_CODEMIRROR = True\n\n # codemirror\n CODEMIRROR_PATH = 'vendor/codemirror'\n CODEMIRROR_THEME = 'default'\n CODEMIRROR_CONFIG = {'lineNumbers': True}\n\n\n.. |pypi| image:: https://img.shields.io/pypi/v/django-cmstemplates.svg?style=flat-square\n :target: https://pypi.python.org/pypi/django-cmstemplates\n :alt: pypi\n\n.. |travis| image:: https://img.shields.io/travis/asyncee/django-cmstemplates.svg?style=flat-square\n :target: https://travis-ci.org/asyncee/django-cmstemplates\n :alt: Travis Build\n\n.. |coveralls| image:: https://img.shields.io/coveralls/asyncee/django-cmstemplates.svg?style=flat-square\n :target: https://coveralls.io/r/asyncee/django-cmstemplates\n :alt: coverage\n\n.. |license| image:: https://img.shields.io/github/license/asyncee/django-cmstemplates.svg?style=flat-square\n :target: https://github.com/asyncee/django-cmstemplates/blob/master/LICENSE\n :alt: MIT License\n\n.. |python| image:: https://img.shields.io/badge/python-2.7, 3.x-blue.svg?style=flat-square\n :target: https://pypi.python.org/pypi/django-cmstemplates\n :alt: Python 2.7, 3.x", "description_content_type": null, "docs_url": null, "download_url": "https://pypi.python.org/pypi/django-cmstemplates/", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/asyncee/django-cmstemplates", "keywords": "django cmstemplates", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "django-cmstemplates", "package_url": "https://pypi.org/project/django-cmstemplates/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-cmstemplates/", "project_urls": { "Download": "https://pypi.python.org/pypi/django-cmstemplates/", "Homepage": "https://github.com/asyncee/django-cmstemplates" }, "release_url": "https://pypi.org/project/django-cmstemplates/0.3.3/", "requires_dist": null, "requires_python": null, "summary": "Efficient django template blocks implementation", "version": "0.3.3" }, "last_serial": 1973726, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "616848471f4cac27ee78dcb63c2f982a", "sha256": "79c5ea9a5fc540984b6db0de8a5ad904b453bbc1a9dd24a0b837c9b8d4809653" }, "downloads": -1, "filename": "django-cmstemplates-0.1.tar.gz", "has_sig": false, "md5_digest": "616848471f4cac27ee78dcb63c2f982a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6763, "upload_time": "2014-11-09T13:49:01", "url": "https://files.pythonhosted.org/packages/83/22/8ca2712d890d85cf7a964dfa63c1e464dec26f1194f101928c59a062024f/django-cmstemplates-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "149cb0cf8a54545c2c2cf59b1b21299c", "sha256": "86e07cb9447c292a6517cb1fa17194fd8b12b702a040a18a9e84c34f44eab33b" }, "downloads": -1, "filename": "django-cmstemplates-0.2.tar.gz", "has_sig": false, "md5_digest": "149cb0cf8a54545c2c2cf59b1b21299c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9189, "upload_time": "2014-11-09T17:26:32", "url": "https://files.pythonhosted.org/packages/ae/55/22ebac1e977e5c61ae985ec273d7533e5530f5bfc2b537d09883a271f724/django-cmstemplates-0.2.tar.gz" } ], "0.3": [], "0.3.2": [ { "comment_text": "", "digests": { "md5": "e62e13eb9f64f6d3968849a74e0f99ff", "sha256": "58c46950a8903969acf1551d95cc65bbedb0c8e5437372ecaf2cfacc3a1e0b6c" }, "downloads": -1, "filename": "django-cmstemplates-0.3.2.tar.gz", "has_sig": false, "md5_digest": "e62e13eb9f64f6d3968849a74e0f99ff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10189, "upload_time": "2015-03-23T15:17:57", "url": "https://files.pythonhosted.org/packages/22/71/71af3a135675327fa0a45e203341ada209b4984391ea4921b61a84000423/django-cmstemplates-0.3.2.tar.gz" } ], "0.3.3": [ { "comment_text": "", "digests": { "md5": "48637d72fc19dd66a39ad08c89954043", "sha256": "6d0233745689ed129a0ddd559a531c2536959173760b559bfcc11199ca518a4a" }, "downloads": -1, "filename": "django-cmstemplates-0.3.3.tar.gz", "has_sig": false, "md5_digest": "48637d72fc19dd66a39ad08c89954043", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11430, "upload_time": "2016-02-24T10:24:07", "url": "https://files.pythonhosted.org/packages/56/a9/1aaf705a7c3f010ee8178ba22bc9d13105c210f0aabe22f91f610c264290/django-cmstemplates-0.3.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "48637d72fc19dd66a39ad08c89954043", "sha256": "6d0233745689ed129a0ddd559a531c2536959173760b559bfcc11199ca518a4a" }, "downloads": -1, "filename": "django-cmstemplates-0.3.3.tar.gz", "has_sig": false, "md5_digest": "48637d72fc19dd66a39ad08c89954043", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11430, "upload_time": "2016-02-24T10:24:07", "url": "https://files.pythonhosted.org/packages/56/a9/1aaf705a7c3f010ee8178ba22bc9d13105c210f0aabe22f91f610c264290/django-cmstemplates-0.3.3.tar.gz" } ] }