{ "info": { "author": "Johannes Spielmann", "author_email": "jps@shezi.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7" ], "description": "django-micro-cms\n================\n\nA micro-CMS for django. A bit like flatpages++.\n\nIt is **not** a fully-fledged CMS with online editing and media\nmanagement. All it does is allow you to manage pages and their\ntemplates and translations in the admin (and display the pages on your\nweb site, naturally).\n\n\nInstallation\n------------\n\n``django-micro-cms`` has no external dependencies other than Django. It\nwas tested against Django 1.6. To install ``django-micro-cms``, simply\n\n::\n \n pip install django-micro-cms\n\n\nThere are two more things you have to do before you can use it on your page.\n\n1. Add ``microcms`` to your installed apps::\n\n INSTALLED_APPS = (\n [...],\n 'microcms',\n ) \n\n2. Add a URL config for your pages::\n\n urlpatterns = patterns('',\n url(r'^page(?P/.*)$', 'microcms.views.pages', name='pages'),\n url(r'^admin/', include(admin.site.urls)),\n )\n\n You can add more than one URL config for your pages, but all pages\n will be available at each endpoint.\n\n\n\nUsage\n-----\n\nUsing ``django-micro-cms`` is quite simple: create templates, create\ncontent, see it on the page. That's all. All of the editing is done in\nthe Django admin.\n\n\nTemplates\n~~~~~~~~~\n\nFirst you have to create one or more ``Template`` objects. These\ntemplates will be rendered when you display a page with it. They can\n``{% extend %}`` pages from your Django web-page, which is a good idea\nif you have a base template, but they cannot themselves be\n``extend``-ed.\n\nInside the template, you can use several variables to insert your\ncontent:\n\n``title``\n The page title as a safe string.\n\n``content``\n The page content as a safe string.\n\n``CONTENT_LANGUAGE_CODE``\n The language code of the loaded content. This may be different from\n the language code of the *page*, because the language code of the\n page depends on the user preferences *and* the page URL (see below\n for details on language-loading). However, the language code of the\n content depends on the availability of content in that language. If\n no content in the requested language is available, the fallback\n language is used and that language code will be indicated here.\n\n``created``\n The date/time of the page creation.\n\n``last_modified``\n The date/time of the last modification of the page content.\n\n \nContent\n~~~~~~~\n\nThe second step is to create pages and content for them. Pages have a\n``URL`` and a ``title``. The URL is the part of the page URL that\nget's parsed out as the view parameter in your URL definition. So if\nyou have a page with ``/about/`` as URL and in your URL definition\nthis setup::\n\n url(r'^page(?P/.*)$', 'microcms.views.pages'),\n\nthen the full URL of that page will be::\n\n /page/about/\n \nThe title attribute of the page will be available unescaped in the\ntemplate as variable ``title``.\n\nFor each page, you can add content. Only pages that have content parts\ndefined are shown. If a page has no content in the fallback language,\nit will only be shown when the requested language version exists.\n\nThe ``content`` attribute of each language version is given to the\ntemplate unescaped.\n\n\nOn the page\n~~~~~~~~~~~\n\nEach page is available under its URL (once there is at least one\ncontent part defined). Additionally, it is also available under its\nURL with a language code prepended.\n\nAn example.\n\nLet's say you have wired up the ``pages`` view as above, to be seen on\nthe page as ``^page(?P/.*)$'``. Then each page you create will be\navailable at the URL you defined. For example, if you have pages with\nURLS ``/about/``, ``/imprint/`` and ``/about/contact/``, the will be\navailable as::\n\n /page/about/\n /page/imprint/\n /page/about/contact/\n\nIf a user requests the page in a locale that has defined content, then\nthe correct content will be served up. If you have content for locales\n``en`` and ``de`` for example, and a user requests the page in German,\nthe ``de`` variant of the content will be served. If you have variants\nin ``es`` and ``es-mx``, and a user requests content in ``es-ar``, the\n``es`` variant will be served.\n\nTo allow serving specific languages, you can prepend the language code\nto the page part of your URL. The above-outlined variants will be\navailable under the following URLs::\n\n /page/en/about/\n /page/de/about/\n /page/es/about/\n /page/es-mx/about/\n\n\n\nLICENSE and COPYRIGHT\n=====================\n\n Copyright 2014 Johannes Spielmann \n\n django-micro-cms is free software: you can redistribute it and/or\n modify it under the terms of the GNU General Public License as\n published by the Free Software Foundation, either version 3 of the\n License, or (at your option) any later version.\n\n django-micro-cms is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n GNU General Public License for more details.\n\n You should have received a copy of the GNU General Public License\n along with django-micro-cms, in a file called LICENSE in the root of\n the project. If not, see .", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/shezi/django-micro-cms/", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "django-micro-cms", "package_url": "https://pypi.org/project/django-micro-cms/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-micro-cms/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://bitbucket.org/shezi/django-micro-cms/" }, "release_url": "https://pypi.org/project/django-micro-cms/1.1.0/", "requires_dist": null, "requires_python": null, "summary": "A micro-CMS for django. A bit like flatpages++.", "version": "1.1.0" }, "last_serial": 965511, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "dc774d4013a836e2fc6596fea03a3783", "sha256": "b90f7d0203f6a9cf251d7f1bf150283df125d08cbd46d3ecc84dee2953128f10" }, "downloads": -1, "filename": "django-micro-cms-1.0.tar.gz", "has_sig": false, "md5_digest": "dc774d4013a836e2fc6596fea03a3783", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5317, "upload_time": "2014-01-09T11:51:57", "url": "https://files.pythonhosted.org/packages/f2/0a/0f0d8bbbd3176193693da9de6820d74644040947f426a4193d6d190a9e69/django-micro-cms-1.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "5fb37eba8ce61323b7799995e289bdc5", "sha256": "95aed7cf4d00591adf511e1b0cb2547b08b0af6b74821c2836b755df134373e7" }, "downloads": -1, "filename": "django-micro-cms-1.0.1.tar.gz", "has_sig": false, "md5_digest": "5fb37eba8ce61323b7799995e289bdc5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5791, "upload_time": "2014-01-10T14:45:23", "url": "https://files.pythonhosted.org/packages/55/3c/6ff9dfb0a5339d9eee5384f7504338d118c44196e509faa81a6d01083c12/django-micro-cms-1.0.1.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "5482da3bb44c3e0059ec43fc1d7574c2", "sha256": "7819432aa8063e8b76739f566ec96fc102f588e81da6d111fde221496deb10a5" }, "downloads": -1, "filename": "django-micro-cms-1.1.0.tar.gz", "has_sig": false, "md5_digest": "5482da3bb44c3e0059ec43fc1d7574c2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5817, "upload_time": "2014-01-10T15:13:18", "url": "https://files.pythonhosted.org/packages/1f/b7/b682bda675dd936bd6da5a458b1d0ddd27a5107d9bd6339de6a49818425e/django-micro-cms-1.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5482da3bb44c3e0059ec43fc1d7574c2", "sha256": "7819432aa8063e8b76739f566ec96fc102f588e81da6d111fde221496deb10a5" }, "downloads": -1, "filename": "django-micro-cms-1.1.0.tar.gz", "has_sig": false, "md5_digest": "5482da3bb44c3e0059ec43fc1d7574c2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5817, "upload_time": "2014-01-10T15:13:18", "url": "https://files.pythonhosted.org/packages/1f/b7/b682bda675dd936bd6da5a458b1d0ddd27a5107d9bd6339de6a49818425e/django-micro-cms-1.1.0.tar.gz" } ] }