{ "info": { "author": "Ryan Chao", "author_email": "ryanchao2012@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Topic :: Software Development", "Topic :: Software Development :: User Interfaces" ], "description": "=======\nGhoster\n=======\n\n**ghoster** is a admin theme which includes markdown features for `Django `_ users.\n\n\nSnapshot\n========\n**regular template:**\n\n.. image:: http://i.imgur.com/WHd6Hlt.png\n :width: 30%\n\n.. image:: http://i.imgur.com/iHal9Jf.png\n :width: 30%\n\n**markdown template:**\n\n.. image:: http://i.imgur.com/sXkcUNu.png\n :width: 30%\n\n.. image:: http://i.imgur.com/FJjOHaK.png\n :width: 30%\n\nRequirements\n============\n\n* python >= 2.7\n* django >= 1.9\n\nInstallation\n============\n\n1. Download it from PyPi with ``pip install django-ghoster``\n2. Add into the ``INSTALLED_APPS`` before ``django.contrib.admin``:\n\n.. code:: python\n\n INSTALLED_APPS = [\n ...\n 'ghoster',\n 'django.contrib.admin',\n ...\n ]\n\n3. don't forget to ``python manange.py collectstatic``\n\nUsage\n=====\n\nIn ``models.py``, assume the model is defined as below:\n\n.. code:: python\n\n from django.db import models\n\n class MyModel(models.Model):\n # the fields which are rendered into markdown\n char_field = models.CharField(max_length=1024)\n text_field = models.TextField()\n\n # other stuff\n foreign_field = ...\n file_field = ...\n url_field = ...\n ...\n\nThen in ``admin.py``, inherit ``GhosterAdmin`` and override ``markdown_field`` and ``title_field`` attributes with the field names.\n\n.. code:: python\n\n from django.contrib import admin\n from ghoster.admin import GhosterAdmin\n from .models import MyModel\n\n class MyModelAdmin(GhosterAdmin):\n markdown_field = \"text_field\"\n title_field = \"char_field\"\n\n # other stuff\n list_display = ...\n list_filter = ...\n\n admin.site.register(MyModel, MyModelAdmin)\n\nThen **ghoster** will render the model-form into 3 parts:\n\n* ``title_field``: this field will be placed in top-bar.\n* ``markdown_field``: markdown editor with side-by-side preview.\n* ``meta_fieldsets``: the rest of fields will be placed in right-sidebar.\n\nContributing\n============\n\n* Author: `Andy Lin `_\n* maintainer: `Ryan Chao `_\n\nEvery code, documentation and UX contribution is welcome.\nIf you have any suggestions or bug reports please report them to the issue tracker", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ZuirensGit/django-ghoster", "keywords": "django markdown cms", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-ghoster", "package_url": "https://pypi.org/project/django-ghoster/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-ghoster/", "project_urls": { "Homepage": "https://github.com/ZuirensGit/django-ghoster" }, "release_url": "https://pypi.org/project/django-ghoster/0.1.2/", "requires_dist": null, "requires_python": "", "summary": "ghoster is a admin theme which includes markdown features for Django users", "version": "0.1.2" }, "last_serial": 2667785, "releases": { "0.1.2": [ { "comment_text": "", "digests": { "md5": "418b10ccbf3b6c90f7fe44e138d3a79a", "sha256": "735efb8384dfb6bcde18311c923d45566629ceec21a75f55d411c87b57becd53" }, "downloads": -1, "filename": "django_ghoster-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "418b10ccbf3b6c90f7fe44e138d3a79a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 1743740, "upload_time": "2017-02-25T16:17:31", "url": "https://files.pythonhosted.org/packages/2c/87/d456e407d1abd6ff3ab4b9eae1ed3d76b4d763f250067df8260412490750/django_ghoster-0.1.2-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "418b10ccbf3b6c90f7fe44e138d3a79a", "sha256": "735efb8384dfb6bcde18311c923d45566629ceec21a75f55d411c87b57becd53" }, "downloads": -1, "filename": "django_ghoster-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "418b10ccbf3b6c90f7fe44e138d3a79a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 1743740, "upload_time": "2017-02-25T16:17:31", "url": "https://files.pythonhosted.org/packages/2c/87/d456e407d1abd6ff3ab4b9eae1ed3d76b4d763f250067df8260412490750/django_ghoster-0.1.2-py2.py3-none-any.whl" } ] }