{ "info": { "author": "Anton Agestam", "author_email": "msn@antonagestam.se", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3" ], "description": "django-text\n===========\n\n|Join the chat at https://gitter.im/antonagestam/django-text|\n|Get downloads at https://pypi.python.org/pypi/django-text|\n|See latest build status at https://travis-ci.org/antonagestam/django-text|\n|Coverage|\n\nIntuitive text editing for humans using Django.\n\n|The django-text toolbar|\n\nThis project is in early development, please test it out and report any bugs!\n\n\nInstallation\n------------\n\nInstall the package with pip.\n\n.. code:: shell\n\n $ pip install django-text\n\nAdd ``text`` to your installed packages.\n\n.. code:: python\n\n # settings.py\n\n INSTALLED_APPS = (\n # ...\n 'text',\n )\n\nAdd ``text.middleware.TextMiddleware`` and ``'text.middleware.ToolbarMiddleware'`` to your middleware classes.\n\n.. code:: python\n\n # settings.py\n\n MIDDLEWARE_CLASSES = (\n # ...\n 'text.middleware.TextMiddleware',\n 'text.middleware.ToolbarMiddleware',\n )\n\nMake sure these context processors are installed, they come with Django.\n\n.. code:: python\n\n # settings.py\n\n TEMPLATE_CONTEXT_PROCESSORS = (\n # ...\n 'django.contrib.auth.context_processors.auth',\n 'django.core.context_processors.request',\n )\n\nAppend ``text.urls`` to your urlpatterns in ``urls.py``.\n\n.. code:: python\n\n # urls.py\n\n from django.conf.urls import patterns, include, url\n\n from text.urls import urlpatterns as django_text_patterns\n \n \n urlpatterns = patterns('',\n url(r'^django_text/', include(django_text_patterns, namespace='django_text')),\n )\n\nRun ``migrate``.\n\n.. code:: shell\n\n $ python manage.py migrate\n\n\nUsage\n-----\n\nThe ``text`` tag\n~~~~~~~~~~~~~~~~\n\nAdd ``editable`` tags to your templates.\n\n.. code:: html\n\n {% load text %}\n\n