{ "info": { "author": "Amit Upadhyay", "author_email": "upadhyay@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "djangothis\n==========\n\nThis is a command line utility that django-izes the current folder. This is\nprimarily for prototyping, but can also be used for full fledged blog site.\n\nLets say the current folder contains a bunch of html file, this utility runs a\ndjango server, and makes the files available through it. The html files can use\ndjango's powerful template inheritance.\n\nRead: `djangothis for blogging\n`_.\n\nDjango Templates\n----------------\n\nAny html file in the current folder is treated as a django template and is\nmapped to a URL mapping their location on disk. Eg index.html will become\navailable on /index.html and so on.\n\nFull power of django templates is available to these html files, so they can\nuse template inheritance etc. This make creating a prototype a breeze as\nmultiple files can inherit the look and feel of a common base.html.\n\nConfig\n------\n\ndjangothis supports configuring django using config.yaml file if present in\ncurrent folder. It can be used configure middleware, template context\nprocessors etc.\n\nStatic files\n------------\n\nIf there is a folder named static in current folder, the content of that folder\nwill also become available on /static/ url. So static/style.css will be served\non /static/style.css.\n\nThis utility also maps request to /favicon.ico to /static/favicon.ico.\n\nviews.py and forms.py\n---------------------\n\nFurther if file names views.py or forms.py exist, the utility \"imports\" them,\nand if those files use `importd `_ style\n\"decorated\" views or forms, they too become available (`example\n`_).\n\nFake Ajax\n---------\n\nAlso if there is a ajax.yaml file in current folder, this utility will look for\nrequest the requested path in the yaml file, and if it exists, appropriate JSON\nwill be returned.\n\nCustom Tag Libraries\n--------------------\n\nA folder named templatetags in current folder can be created with __init__.py\nand django template tag libraries, and djangothis will make them available to\nyour templates.\n\nCustom Commands\n---------------\n\nThe current folder can contain a folder cmds, which can have `django management\ncommands\n`_\nstored in it, along with an __init__.py.\n\nThe command can be executed by running $ djangothis commandname.\n\nThemes\n------\n\ndjangothis supports theming. Theme can be placed in a special folder _theme.\nThis folder is placed at the beginning of template dirs settings, so any\ntemplate can be \"overridden\" by placing in it.\n\nFor the purpose of special theme specific static files, they can be placed in\nside _theme folder, and will be accessible via /theme/ url. Eg if there is a\ncss file _theme/style.css, it can be accessed via /theme/style.css.\n\nWith these two features themes can be distributed as self contained folder.\n\nCommands, Views, Custom TemplateTags and Forms in Themes\n++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n\nIf needed a theme can contain cmds folder, templatetags folder, views.py and\nforms.py which will be included. For this feature to work the _theme folder\nneeds to also contain __init__.py.\n\nAuto Reload\n-----------\n\nThe debug server reloads itself when config.yaml or ajax.yaml file is updated.\nFurther any theme can call djangothis.watchfile(file_path) to watch a file\nfor modifications, so that debug server can be reloaded.\n\nUsing djangothis as a static site generator\n-------------------------------------------\n\n.. code::\n\n $ wget -m http://localhost:8000\n\nCan be used to create a local mirror.\n\nReplacing jekyll, pelican etc\n-----------------------------\n\ndjangothis can be used to replace jekyll, pelican etc. For this an appropriate\nviews.py file has to be written and placed in the current folder or in _theme\nfolder, which will define views for / or /blog/, that view can read the content\nof _posts for example, generate appropriate summary and links, define views for\npost etc, which serve the page.\n\nMy person website, `amitu.com `_ is powered by this, which\nused to be jekyll powered. The source is available on `djangothis-jekyll\n`_.\n\nExample site\n------------\n\n * `amitu.com `_, `source\n `_.\n * `html5 boilerplate for djangothis\n `_.\n\nInstallation and Usage\n----------------------\n\nTo install:\n\n.. code::\n\n $ pip install djangothis\n\nTo run from any folder that contains files as described above:\n\n.. code::\n\n $ djangothis\n Validating models...\n\n 0 errors found\n Django version 1.4.1, using settings None\n Development server is running at http://127.0.0.1:8000/\n Quit the server with CONTROL-C.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://amitu.com/djangothis/", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "djangothis", "package_url": "https://pypi.org/project/djangothis/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/djangothis/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://amitu.com/djangothis/" }, "release_url": "https://pypi.org/project/djangothis/0.9/", "requires_dist": null, "requires_python": null, "summary": "Serve static files and django templates in current folder.", "version": "0.9" }, "last_serial": 1285967, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "3de26f1aaf1ffe91eb17192bb764e9ae", "sha256": "06910ffb0611f0842399d01abc4acb0b9e443faf763da1a33cfd7fe6eed6b4e1" }, "downloads": -1, "filename": "djangothis-0.1.tar.gz", "has_sig": false, "md5_digest": "3de26f1aaf1ffe91eb17192bb764e9ae", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3372, "upload_time": "2013-08-14T22:40:01", "url": "https://files.pythonhosted.org/packages/3d/0e/96ceaab7fbd374256788ac04e2a475463329e549c2a70bb1329b81a33cbb/djangothis-0.1.tar.gz" }, { "comment_text": "", "digests": { "md5": "5c0f241b417cbd26eaa144c521605a84", "sha256": "f635cc51eafc0d868d345911fee88da7428bab824843e70d3849d7cdf330a13e" }, "downloads": -1, "filename": "djangothis-0.1.zip", "has_sig": false, "md5_digest": "5c0f241b417cbd26eaa144c521605a84", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7015, "upload_time": "2013-08-14T22:40:02", "url": "https://files.pythonhosted.org/packages/71/d4/ef32bd21560aa7a25bd604ebdc142c8c12c8f680b2408937d3b7d99b4733/djangothis-0.1.zip" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "a6539db6686c01d2844ae5e3c2ba615d", "sha256": "9258c207f444e28fa0bf990687fddfb778fd1854be32a2c0388327ce4397e863" }, "downloads": -1, "filename": "djangothis-0.2.tar.gz", "has_sig": false, "md5_digest": "a6539db6686c01d2844ae5e3c2ba615d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3370, "upload_time": "2013-08-16T22:48:43", "url": "https://files.pythonhosted.org/packages/15/12/68162216597f901afd90bff99dc1956b3376db4b7a34f2cd4f0cc0e16982/djangothis-0.2.tar.gz" }, { "comment_text": "", "digests": { "md5": "9b7a44fa66dcab6b9d665dd1850f9e82", "sha256": "26635c6c1183eae46d30686db68106c5fb4f9d7fcfa57337774baafa4676b01c" }, "downloads": -1, "filename": "djangothis-0.2.zip", "has_sig": false, "md5_digest": "9b7a44fa66dcab6b9d665dd1850f9e82", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7015, "upload_time": "2013-08-16T22:48:45", "url": "https://files.pythonhosted.org/packages/dc/03/ec693e6de7de3865e3b5af88d6679d54b4bf375d62055afdb74bd79ac534/djangothis-0.2.zip" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "37898150b7ea3d78b0178a394b999950", "sha256": "ff752ea132ca3036d77183b72fd23a8de1c760ba28e64a76fa8173eb07942466" }, "downloads": -1, "filename": "djangothis-0.3.tar.gz", "has_sig": false, "md5_digest": "37898150b7ea3d78b0178a394b999950", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4159, "upload_time": "2013-08-19T04:22:53", "url": "https://files.pythonhosted.org/packages/81/3a/51623adc18b942462a5ecbb799a0c26be6fdcb5957f89a27f11d23325b33/djangothis-0.3.tar.gz" }, { "comment_text": "", "digests": { "md5": "b1dc5d3341a15e5c9369659df4c84d95", "sha256": "bf25a843350dbcdda5c08283fe90fcdc7a13bca779d0910e20df2bfecc7e1473" }, "downloads": -1, "filename": "djangothis-0.3.zip", "has_sig": false, "md5_digest": "b1dc5d3341a15e5c9369659df4c84d95", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8804, "upload_time": "2013-08-19T04:22:55", "url": "https://files.pythonhosted.org/packages/da/ef/5578e2bc5ab91b13777ce5301f855fcd982edc521115110b22f442a9e2d5/djangothis-0.3.zip" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "6fdb7fe22daa50b7e151e70fd98913c1", "sha256": "c5fcc45695266fb0ffdee1a2599ba4476eaca33565a23bbbd8f645e04d5379bf" }, "downloads": -1, "filename": "djangothis-0.4.tar.gz", "has_sig": false, "md5_digest": "6fdb7fe22daa50b7e151e70fd98913c1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13455, "upload_time": "2013-09-01T23:30:47", "url": "https://files.pythonhosted.org/packages/9e/d8/7bcffca7bcb7eb0a20de3a287b98edf8f320d3d7aa30b24008c77ac2e730/djangothis-0.4.tar.gz" }, { "comment_text": "", "digests": { "md5": "71a69450f74b53d532f5bd59eb198a64", "sha256": "1e44f3be36ac553b081a88dd12cdcefacecee5e63bb7fb0e950299cbf8c64fa9" }, "downloads": -1, "filename": "djangothis-0.4.zip", "has_sig": false, "md5_digest": "71a69450f74b53d532f5bd59eb198a64", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19150, "upload_time": "2013-09-01T23:30:49", "url": "https://files.pythonhosted.org/packages/6d/bb/005a7fe64b74a12234bfb6a1da796ac5e87ce3b2c0ff6b89a908e007ab16/djangothis-0.4.zip" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "653cbd55a425ad9193de3c961d68c700", "sha256": "808096401ced21a39de63daee3fd71aecd13d0aa63cea255f1e8e19e36c55d66" }, "downloads": -1, "filename": "djangothis-0.5.tar.gz", "has_sig": false, "md5_digest": "653cbd55a425ad9193de3c961d68c700", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13654, "upload_time": "2013-09-02T00:54:34", "url": "https://files.pythonhosted.org/packages/84/e3/60d920a76c5f01b4d5576bbb3dadd1dfe95a0d707263715327b6ede21125/djangothis-0.5.tar.gz" }, { "comment_text": "", "digests": { "md5": "79a72e162535e71382da6074634f9caf", "sha256": "4ade9450d541bffa40564bac0ee053f1e6becebdf2e5eeb886794859740bf1c9" }, "downloads": -1, "filename": "djangothis-0.5.zip", "has_sig": false, "md5_digest": "79a72e162535e71382da6074634f9caf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19584, "upload_time": "2013-09-02T00:54:37", "url": "https://files.pythonhosted.org/packages/9d/f0/f25de9dc28e93ddde2550f4d46a479effb9ed2ed9550d0051083c9992a36/djangothis-0.5.zip" } ], "0.6": [ { "comment_text": "", "digests": { "md5": "54bd0259ada0ffb8e79f6d83d67752d4", "sha256": "f08329bfeac3d1eb6a97dc6e8a08b6fa08449bee21ec2190b6254499b93f17be" }, "downloads": -1, "filename": "djangothis-0.6.tar.gz", "has_sig": false, "md5_digest": "54bd0259ada0ffb8e79f6d83d67752d4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13681, "upload_time": "2013-09-04T14:22:09", "url": "https://files.pythonhosted.org/packages/50/3c/47bd61dcb357d8cd9978921afa9e1127ae1d2eaf89dffb38f149b76bf678/djangothis-0.6.tar.gz" }, { "comment_text": "", "digests": { "md5": "098b3814ab8c20bf88698d770ac193ec", "sha256": "29ba508de0f788a2e98213db6fa26d395ebf6956bb98f5405ed4ee53462fb210" }, "downloads": -1, "filename": "djangothis-0.6.zip", "has_sig": false, "md5_digest": "098b3814ab8c20bf88698d770ac193ec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19605, "upload_time": "2013-09-04T14:22:11", "url": "https://files.pythonhosted.org/packages/b4/bd/e015bb7cc1cf7a9cc866a686ce174f858e2c3ae7ba027f3115433bcede14/djangothis-0.6.zip" } ], "0.7": [ { "comment_text": "", "digests": { "md5": "f9b3b7fcfded087f28deb4cd6b9541af", "sha256": "03fc153808e6ec5f354fd7acb856b1dc394dc485fd18293134cbd25491f70238" }, "downloads": -1, "filename": "djangothis-0.7.tar.gz", "has_sig": false, "md5_digest": "f9b3b7fcfded087f28deb4cd6b9541af", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14385, "upload_time": "2013-09-08T03:41:01", "url": "https://files.pythonhosted.org/packages/dd/d7/7674a9fcdd13a7b6918504c184b8dcb2b96f05bc60c13c706fa913cc5672/djangothis-0.7.tar.gz" }, { "comment_text": "", "digests": { "md5": "17955cbd541de125b10788799540e412", "sha256": "b9f70a9f0f112e3a4c3bb4514ff416ff687fad693a9f24c17f54842cab7be529" }, "downloads": -1, "filename": "djangothis-0.7.zip", "has_sig": false, "md5_digest": "17955cbd541de125b10788799540e412", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21195, "upload_time": "2013-09-08T03:41:03", "url": "https://files.pythonhosted.org/packages/3c/bb/08114cf3019dcfc55ca3be078c2c0a467ea927a4629948004c00c1dd28b7/djangothis-0.7.zip" } ], "0.8": [ { "comment_text": "", "digests": { "md5": "dd767a095a0b5fdcc26f11b2169bfcca", "sha256": "e9a3de896f8932b924c9bed05ca960c8c188512dc949fdebf955841ab297f9ac" }, "downloads": -1, "filename": "djangothis-0.8.tar.gz", "has_sig": false, "md5_digest": "dd767a095a0b5fdcc26f11b2169bfcca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13634, "upload_time": "2014-10-27T19:10:14", "url": "https://files.pythonhosted.org/packages/fe/b4/8b9c2236a8870e940954ea7cdbcdb9f3d3377829a2b78f65e20375c0ec2a/djangothis-0.8.tar.gz" }, { "comment_text": "", "digests": { "md5": "0f0ddff9d326e69cfd2b06bf87e42596", "sha256": "3a9e708cae4bbca65a8f658e2c7b6424efd46a9e887c91272bf59dfe4bf00e13" }, "downloads": -1, "filename": "djangothis-0.8.zip", "has_sig": false, "md5_digest": "0f0ddff9d326e69cfd2b06bf87e42596", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19697, "upload_time": "2014-10-27T19:10:18", "url": "https://files.pythonhosted.org/packages/3f/5a/62d9d993fed78fe64c9b930f0a343c6795bf870b41289ea6dc7fc59664bd/djangothis-0.8.zip" } ], "0.9": [ { "comment_text": "", "digests": { "md5": "dcd0960e6205c83d6f6c401fb219fefd", "sha256": "a8bba8aac51758a48d5fb1cff858cf2b57cbf7dabff0d8ab472f5b342c904c4c" }, "downloads": -1, "filename": "djangothis-0.9.tar.gz", "has_sig": false, "md5_digest": "dcd0960e6205c83d6f6c401fb219fefd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14148, "upload_time": "2014-10-28T17:28:01", "url": "https://files.pythonhosted.org/packages/66/f2/707f34ce6c26c21fefe62f155ca2fbd4f01bdd2f436ff4eab67d84229263/djangothis-0.9.tar.gz" }, { "comment_text": "", "digests": { "md5": "51d046f89f45b0250506a7aaab0f4795", "sha256": "ee6f80cc5f02db66f5d41282358feb375d18a0983de0ea59388ab2fae9f20da4" }, "downloads": -1, "filename": "djangothis-0.9.zip", "has_sig": false, "md5_digest": "51d046f89f45b0250506a7aaab0f4795", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21133, "upload_time": "2014-10-28T17:28:10", "url": "https://files.pythonhosted.org/packages/56/0b/b86061f284b2f00eef0677b06a05cc95776b47b4a634e36c8a0e197bfa64/djangothis-0.9.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "dcd0960e6205c83d6f6c401fb219fefd", "sha256": "a8bba8aac51758a48d5fb1cff858cf2b57cbf7dabff0d8ab472f5b342c904c4c" }, "downloads": -1, "filename": "djangothis-0.9.tar.gz", "has_sig": false, "md5_digest": "dcd0960e6205c83d6f6c401fb219fefd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14148, "upload_time": "2014-10-28T17:28:01", "url": "https://files.pythonhosted.org/packages/66/f2/707f34ce6c26c21fefe62f155ca2fbd4f01bdd2f436ff4eab67d84229263/djangothis-0.9.tar.gz" }, { "comment_text": "", "digests": { "md5": "51d046f89f45b0250506a7aaab0f4795", "sha256": "ee6f80cc5f02db66f5d41282358feb375d18a0983de0ea59388ab2fae9f20da4" }, "downloads": -1, "filename": "djangothis-0.9.zip", "has_sig": false, "md5_digest": "51d046f89f45b0250506a7aaab0f4795", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21133, "upload_time": "2014-10-28T17:28:10", "url": "https://files.pythonhosted.org/packages/56/0b/b86061f284b2f00eef0677b06a05cc95776b47b4a634e36c8a0e197bfa64/djangothis-0.9.zip" } ] }