{ "info": { "author": "Paolo Dente", "author_email": "pgcd93@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: Django", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "scheduled_blocks\n========================\n\nWelcome to the documentation for django-scheduled_blocks v0.0.1!\n\nThe purpose of this app is to schedule content in a Django template.\n\nBASIC USAGE:\n____________\n* Add ``'scheduled_blocks'`` to your ``INSTALLED_APPS``.\n* Run 'python manage.py migrate scheduled_blocks' to create the required table.\n* Add a block in the admin panel - you can begin by simply entering the name of the block and something in the ``content`` field.\n* In the template where you need to schedule some content, add ``{% load scheduled_blocks_tags %}`` at the beginning, then\n add ``{% schedule_block %}`` where you want the content to appear.\n* That's it - the content will appear where required.\n\nMORE USEFUL USAGE:\n__________________\n* Define a second block (with the same name - you can have any number of blocks with the same name) with different content\n and set its ``display_from`` field to be some time in the future. You can test the result by appending ``?testdate=YYYY-MM-DD``\n (substitute the actual values here) to the URL of the relevant page.\n* You can (you should) use actual templates for your content, either by specifying the template name (no extension) in\n your ScheduledBlock object or by naming the template so that the loader will find it. The name resolution rules are:\n 1. scheduled_blocks/(saved template_name)\n 2. scheduled_blocks/(block name)_(event_name)\n 3. scheduled_blocks/(block name)_(display_from datetime)_(display_to datetime)\n 4. scheduled_blocks/(block name)_(display_from date)_(display_to date)\n 5. scheduled_blocks/(block name)_(display_from datetime)\n 6. scheduled_blocks/(block name)\n Datetime, here, means YYYYMMDDHHMM, while date means YYYYMMDD.\n* You can pass extra context to your scheduled block, by specifying it in the ScheduledBlock object as a dict.", "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/pgcd/scheduled_blocks", "keywords": null, "license": "Simplified BSD", "maintainer": null, "maintainer_email": null, "name": "django-scheduled_blocks", "package_url": "https://pypi.org/project/django-scheduled_blocks/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-scheduled_blocks/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/pgcd/scheduled_blocks" }, "release_url": "https://pypi.org/project/django-scheduled_blocks/0.0.1/", "requires_dist": null, "requires_python": null, "summary": "A quick and dirty app to schedule content in django templates", "version": "0.0.1" }, "last_serial": 790546, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "eb3ccd4827db5ce2206e933b313de6c9", "sha256": "3b2fe55f56f645dae9c37b5b909978a6b0e0a1fed7bae62eb2307d51b6d2ed90" }, "downloads": -1, "filename": "django-scheduled_blocks-0.0.1.tar.gz", "has_sig": false, "md5_digest": "eb3ccd4827db5ce2206e933b313de6c9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5773, "upload_time": "2012-09-26T13:41:11", "url": "https://files.pythonhosted.org/packages/5d/f0/e352373d6860c0c0f9d6ad40d228882a64dfef1896d39d268f64cf32f770/django-scheduled_blocks-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "eb3ccd4827db5ce2206e933b313de6c9", "sha256": "3b2fe55f56f645dae9c37b5b909978a6b0e0a1fed7bae62eb2307d51b6d2ed90" }, "downloads": -1, "filename": "django-scheduled_blocks-0.0.1.tar.gz", "has_sig": false, "md5_digest": "eb3ccd4827db5ce2206e933b313de6c9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5773, "upload_time": "2012-09-26T13:41:11", "url": "https://files.pythonhosted.org/packages/5d/f0/e352373d6860c0c0f9d6ad40d228882a64dfef1896d39d268f64cf32f770/django-scheduled_blocks-0.0.1.tar.gz" } ] }