{ "info": { "author": "Preston Timmons", "author_email": "prestontimmons@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Programming Language :: Python" ], "description": "Overview\n========\n\nMagneto is a content and template management application built for the\n`Django`_ framework.\n\nA ``Template`` represents a web page on your site. Within the template\ncan be used any built-in `Template Tags`_, as well as custom installed ones.\nBeyond HTML pages, a ``Template`` can also represent content types such as\nCSS, Javascript, JSON, and XML. When using template inheritance, templates\ncan be marked for use strictly by the template loader and not for display\nas a web page.\n\nKey Features\n------------\n\n- Because templates and web pages are synonymous you can use template tags\n and filters in your pages.\n- Manage content types like html, css, javascript, xml, json, and text.\n- Database queries can be minimized with the use of a cached template loader\n that caches pre-rendered templates.\n- Use CodeMirror in the admin for template editing.\n- Know who changed what and when with built-in support for `Reversion`_.\n Easily go back to older versions of the content.\n- Group related templates with ``Template Groups``. Useful when you have a\n large number of templates.\n- `HTML5 Boilerplate`_ fixtures included to get started quickly.\n- Support for `South`_ migrations.\n\nAdmin Pages\n-----------\n\n.. image:: http://imgur.com/OcKX3.png\n.. image:: http://imgur.com/OltdC.png\n.. image:: http://imgur.com/7fYnB.png\n\n\nSandbox Installation\n====================\n\nAn example application is provided to make this application easy to download\nand demo in a sandboxed environment. Use the following commands to run it::\n\n $ hg clone http://bitbucket.org/prestontimmons/django-magneto\n $ cd django-magneto\n $ python bootstrap.py\n $ bin/buildout\n $ cp -r magneto/media/ example/media/magneto\n $ bin/django syncdb\n $ bin/django migrate\n $ bin/django loaddata html5boilerplate.json\n $ bin/django runserver 0.0.0.0:8000\n\nVisit http://localhost:8000/admin/ and update your domain in ``Site``\nsettings to match the server your running on. Now you can view and edit\nthe templates that were loaded in.\n\n\nSite Installation\n=================\n\nConfigure your ``settings.py``\n------------------------------\n\n#) Make sure ``django.contrib.sites`` and ``django.contrib.admin`` are\n installed. Add ``magneto`` and ``reversion`` to ``INSTALLED_APPS``.\n Optionally add ``south`` for migration support.\n\n Example::\n\n INSTALLED_APPS = (\n 'django.contrib.admin',\n 'django.contrib.admindocs',\n 'django.contrib.auth',\n 'django.contrib.contenttypes',\n 'django.contrib.sessions',\n 'django.contrib.sites',\n\n ...\n\n 'magneto',\n 'reversion',\n\n ...\n\n 'south', # optional for migrations\n )\n\n#) Add ``magneto.loader.CachedTemplateLoader`` to ``TEMPLATE_LOADERS``.\n\n Example::\n\n TEMPLATE_LOADERS = (\n 'magneto.loader.CachedTemplateLoader',\n\n ...\n\n 'django.template.loaders.filesystem.load_template_source',\n 'django.template.loaders.app_directories.load_template_source',\n )\n\n#) Copy media files to where they can be found by the admin pages.\n * See the notes on the MAGNETO_MEDIA_DIRECTORY setting below for more\n information.\n\n#) Add a url entry in your site urls.py.\n\n Example::\n\n urlpatterns = patterns('',\n (r'^admin/', include(admin.site.urls)),\n (r'^accounts/login/$', 'django.contrib.auth.views.login'),\n\n ...\n\n # Mount it at a specific url\n (r'^pages/', include('magneto.urls')),\n\n # Or mount it at your root url\n (r'^', include('magneto.urls')),\n )\n\n#) Run ``python manage.py syncdb``.\n\n#) Run ``python manage.py runserver 0.0.0.0:8000`` to start the\n Django devserver.\n\n\nConfigurable Settings\n=====================\n\n``MAGNETO_MEDIA_DIRECTORY``\n\n The url of the root folder where the magneto media files are.\n This defaults to a folder called ``magneto`` in the directory specified\n by the ``MEDIA_URL`` setting.\n\n\nNotes\n=====\n\nBuilt for Python 2.6, Django 1.2 according to `PEP8`_ and the\n`Django Style Guide`_. If you're using previous versions of Python or\nDjango your mileage may vary. Let me know if anything doesn't work.\n\nStanding on the shoulders of giants\n-----------------------------------\nThis application is like a combined version of Django `DB Templates`_ and\nthe built-in `Flatpages` application. Thanks to `Jannis Leidel`_ for\nopen-sourcing the `DB Templates` app and for everyone who contributed to\nDjango.\n\n\n.. _`DB Templates`: http://pypi.python.org/pypi/django-dbtemplates/\n.. _`Django`: http://djangoproject.com/\n.. _`Django Style Guide`: http://docs.djangoproject.com/en/dev/internals/contributing/\n.. _`Flatpages`: http://docs.djangoproject.com/en/dev/ref/contrib/flatpages/\n.. _`Gospel`: http://fm.thevillagechurch.net/resource_files/audio/20070224BA01S_MattChandler_Gospel.mp3\n.. _`HTML5 Boilerplate`: http://html5boilerplate.com/\n.. _`Jannis Leidel`: http://github.com/jezdez\n.. _`Jesus Christ`: http://www.youtube.com/watch?v=xMxRWd9sgGI\n.. _`PEP8`: http://www.python.org/dev/peps/pep-0008/\n.. _`Reversion`: http://pypi.python.org/pypi/django-reversion\n.. _`South`: http://south.aeracode.org/\n.. _`Template Tags`: http://docs.djangoproject.com/en/dev/ref/templates/builtins/", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://bitbucket.org/prestontimmons/django-magneto/src", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "django-magneto", "package_url": "https://pypi.org/project/django-magneto/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-magneto/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://bitbucket.org/prestontimmons/django-magneto/src" }, "release_url": "https://pypi.org/project/django-magneto/0.9.0/", "requires_dist": null, "requires_python": null, "summary": "A content and template management application for Django.", "version": "0.9.0" }, "last_serial": 790017, "releases": { "0.9.0": [ { "comment_text": "", "digests": { "md5": "6323861c04052ee2fc99186f16df1522", "sha256": "f138e9f8559e26354c71abf426487ec8de0af875b19ac3c8f53a6207d52bd99d" }, "downloads": -1, "filename": "django-magneto-0.9.0.tar.gz", "has_sig": false, "md5_digest": "6323861c04052ee2fc99186f16df1522", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 48278, "upload_time": "2010-10-14T01:24:33", "url": "https://files.pythonhosted.org/packages/20/f5/28d4a71f369e477b37d4b7bf1379e909fa6f8f254a2f791f53b3f40f5936/django-magneto-0.9.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6323861c04052ee2fc99186f16df1522", "sha256": "f138e9f8559e26354c71abf426487ec8de0af875b19ac3c8f53a6207d52bd99d" }, "downloads": -1, "filename": "django-magneto-0.9.0.tar.gz", "has_sig": false, "md5_digest": "6323861c04052ee2fc99186f16df1522", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 48278, "upload_time": "2010-10-14T01:24:33", "url": "https://files.pythonhosted.org/packages/20/f5/28d4a71f369e477b37d4b7bf1379e909fa6f8f254a2f791f53b3f40f5936/django-magneto-0.9.0.tar.gz" } ] }