{ "info": { "author": "Guillaume Luchet", "author_email": "", "bugtrack_url": null, "classifiers": [], "description": "django-editos\n=============\n\n|Build status|\n\nDjango app to manage and display editos\n\nRequires\n--------\n\n**1.5**\n\n- Django >= 1.8\n\n**<= 1.4.1**\n\n- Django >= 1.6 <= 1.8\n\nInstall\n-------\n\nUsing PyPI\n\n.. code-block:: text\n\n pip install django-editos\n\nFrom source\n\n.. code-block:: text\n\n python setup.py install\n\nTesting\n-------\n\nPreparing test env\n\n.. code-block:: text\n\n virtualenv ./virtualenv\n source virtualenv/bin/activate\n pip install django>=1.8\n\nRuning unit tests\n\n.. code-block:: text\n\n python setup.py test\n\nConfiguring\n-----------\n\nAdd ``geelweb.django.editos`` to ``INSTALLED_APPS`` in your settings.\n\nCreate the db with ``python manage.py migrate editos``\n\nLoad the editos tags in your templates with ``{% load editos %}``\n\nEdito model\n-----------\n\nFields\n^^^^^^\n\n``editos.models.Edito`` object have the following fields\n\n**title**\n\nRequired. 100 characters or fewer.\n\n**link**\n\nRequired. Url to redirect\n\n**button_label**\n\nOptional. 20 characters or fewer.\n\n**image**\n\nRequired. Uploaded image.\n\n**text_content**\n\nRequired. 400 characters or fewer.\n\n**display_from**\n\nRequired. A date field to represent the date from which the item is active.\n\n**display_until**\n\nRequired. A date field to represent the date by which the item is active.\n\n**active**\n\nOptional. Default to True. Define if the item is active.\n\n**text_theme**\n\nRequired. A theme to apply to the item in the template rendering. Can be \"light\" or \"dark\". text_theme field use EDITOS_THEMES_ and EDITOS_DEFAULT_THEME_ settings.\n\nTemplate tags\n-------------\n\n**editos**\n\nRender the editos. Example\n\n.. code-block:: text\n\n {% editos path/to/a/template.html %}\n\nThe first argument is the path to a template to use to render the editos. If\nomited the default ``editos/carousel.html`` template is used.\n\nTemplates\n---------\n\n**editos/carousel.html**\n\nThe default template. Render a `Bootstrap 3 Carousel `_\n\nWrite custom templates\n----------------------\n\nThe editos will be assign to the template in the ``editos`` variable. Example\n\n.. code-block:: text\n\n {% for edito in editos %}\n {{ edito.title }}\n {% endfor %}\n\nSettings\n--------\n\n.. _EDITOS_THEMES:\n\n**EDITOS_THEMES**\n\nDefault\n\n.. code-block:: text\n\n (\n ('light', 'Light'),\n ('dark', 'Dark'),\n )\n\nA tuple of (value, label) choices\n\n.. _EDITOS_DEFAULT_THEME:\n\n**EDITOS_DEFAULT_THEME**\n\nDefault: \"light\"\n\nThe default theme to use\n\n**EDITOS_HELP_TEXTS**\n\nDefault: {}\n\nThis sets the mapping of help text to model field. Example\n\n.. code-block:: text\n\n EDITOS_HELP_TEXTS = {\n 'image': '150 x 300px',\n }\n\nLicense\n-------\n\ndjango-editos is released under MIT License. See LICENSE.txt file for details.\n\n.. |Build status| image:: https://travis-ci.org/geelweb/django-editos.svg?branch=master", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/geelweb/django-editos/tarball/1.5", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/geelweb/django-editos", "keywords": "django,editos,carousel", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "django-editos", "package_url": "https://pypi.org/project/django-editos/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-editos/", "project_urls": { "Download": "https://github.com/geelweb/django-editos/tarball/1.5", "Homepage": "https://github.com/geelweb/django-editos" }, "release_url": "https://pypi.org/project/django-editos/1.5/", "requires_dist": null, "requires_python": null, "summary": "Django app to manage and display editos", "version": "1.5" }, "last_serial": 1785571, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "48be39a27aa338156646e69e61797f17", "sha256": "2397642109fd039992792a190b7f92856f55386d3faf617360a13735b64ac969" }, "downloads": -1, "filename": "django-editos-1.0.tar.gz", "has_sig": false, "md5_digest": "48be39a27aa338156646e69e61797f17", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4136, "upload_time": "2014-05-10T07:14:13", "url": "https://files.pythonhosted.org/packages/96/5b/88fbe31ee6febf1387681ed1878b0fdbad37dc0facd90cddec5466abbd2e/django-editos-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "cfb06bc0e652576f48aa6448a3466766", "sha256": "5dafb5350729b1b5908e9fa6f7fb44604d62857399bff5ef670f74232e51435d" }, "downloads": -1, "filename": "django-editos-1.1.tar.gz", "has_sig": false, "md5_digest": "cfb06bc0e652576f48aa6448a3466766", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5928, "upload_time": "2014-05-29T07:28:10", "url": "https://files.pythonhosted.org/packages/7b/51/fcd25d90af2647f144eaca3fa4d21cec82c200fe3b1c8dfd98e6fc0d7f23/django-editos-1.1.tar.gz" } ], "1.3": [ { "comment_text": "", "digests": { "md5": "0a483aa738a799284f934775bb2cde53", "sha256": "2eb67b50066e6d80ff226c87df8530f4b42616eacd90d906fac5d0544c6e6152" }, "downloads": -1, "filename": "django-editos-1.3.tar.gz", "has_sig": false, "md5_digest": "0a483aa738a799284f934775bb2cde53", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6434, "upload_time": "2015-04-05T15:23:10", "url": "https://files.pythonhosted.org/packages/3d/cc/7a37e31ee448a9d699a32314c587b64c8166372dc3f071efc427a8353dd2/django-editos-1.3.tar.gz" } ], "1.4": [ { "comment_text": "", "digests": { "md5": "f85b0012b5ce9969218d84b402c67fe0", "sha256": "2190243459cbf32c2ff4a701d1db6e83d2546298bd592a20dbdb842746dd4273" }, "downloads": -1, "filename": "django-editos-1.4.tar.gz", "has_sig": false, "md5_digest": "f85b0012b5ce9969218d84b402c67fe0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6776, "upload_time": "2015-10-12T20:18:13", "url": "https://files.pythonhosted.org/packages/71/45/9ee03c08e2e2d557921cdceadecb4cbd3785264fd9f5b6acab64fd5a6b81/django-editos-1.4.tar.gz" } ], "1.4.1": [ { "comment_text": "", "digests": { "md5": "0d47b3244433f534c8abc956ef59a516", "sha256": "08ec5d765df483da921fae8ed4c5d930efd280b17a81192b6fc0653ea581ac75" }, "downloads": -1, "filename": "django-editos-1.4.1.tar.gz", "has_sig": false, "md5_digest": "0d47b3244433f534c8abc956ef59a516", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6911, "upload_time": "2015-10-25T20:45:17", "url": "https://files.pythonhosted.org/packages/61/2e/5836cad7c10a3e384cf0e1089045d72a36c88c09dc1c0823a0d121b59d46/django-editos-1.4.1.tar.gz" } ], "1.5": [ { "comment_text": "", "digests": { "md5": "6a19e420f0699222b7726c9eb3dc9d34", "sha256": "ce2d71a91acbfc6bd4661a52115b7478dd3d27aea5188f143c87c7cdfd58963c" }, "downloads": -1, "filename": "django-editos-1.5.tar.gz", "has_sig": false, "md5_digest": "6a19e420f0699222b7726c9eb3dc9d34", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6946, "upload_time": "2015-10-25T21:08:22", "url": "https://files.pythonhosted.org/packages/ba/60/402fbf011c4985f1740d929acffdf6ddceab570dba707d724d9224eed4cb/django-editos-1.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6a19e420f0699222b7726c9eb3dc9d34", "sha256": "ce2d71a91acbfc6bd4661a52115b7478dd3d27aea5188f143c87c7cdfd58963c" }, "downloads": -1, "filename": "django-editos-1.5.tar.gz", "has_sig": false, "md5_digest": "6a19e420f0699222b7726c9eb3dc9d34", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6946, "upload_time": "2015-10-25T21:08:22", "url": "https://files.pythonhosted.org/packages/ba/60/402fbf011c4985f1740d929acffdf6ddceab570dba707d724d9224eed4cb/django-editos-1.5.tar.gz" } ] }