{ "info": { "author": "Dwaiter.com", "author_email": "dev@dwaiter.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Internet :: WWW/HTTP :: Site Management", "Topic :: Software Development :: User Interfaces", "Topic :: Utilities" ], "description": "Django-Front-Edit\n=================\n\nDescription\n-----------\n\nA front end editing app for Django. This app allows one to edit dynamic\ndata on the front end of a website when logged in as a staff member. The\napp allows the editing of dynamic content within any element (See\nExample below).\n\nInstallation\n------------\n\nYou must have setuptools installed.\n\nFrom PyPI:\n\n::\n\n pip install django_front_edit\n\nOr download a package from the\n`PyPI `__ or the\n`BitBucket\npage `__:\n\n::\n\n pip install \n\nOr unpack the package and:\n\n::\n\n python setup.py install.\n\nDependencies\n------------\n\nDjango >= 1.4 and its dependencies.\n\nbeautifulsoup4 >= 4.3.2 located at:\nhttp://www.crummy.com/software/BeautifulSoup/ or\nhttps://pypi.python.org/pypi/beautifulsoup4/.\n\ndjango-classy-tags >= 0.5.1 located at:\nhttps://github.com/ojii/django-classy-tags or\nhttps://pypi.python.org/pypi/django-classy-tags.\n\n**and either one of the following:** (see ``FRONT_EDIT_HTML_PARSER``\nsetting below)\n\nhtml5lib >= 0.999, != 0.9999, != 1.0b5, != 0.99999, != 1.0b6 located at:\nhttps://github.com/html5lib/html5lib-python or\nhttps://pypi.python.org/pypi/html5lib.\n\nlxml located at: https://github.com/lxml/lxml or\nhttps://pypi.python.org/pypi/lxml\n\nIntegration\n-----------\n\nIn your Django settings.py file insert the following in an appropriate\nplace:\n\n::\n\n ...\n # for django >1.4 <1.8\n TEMPLATE_CONTEXT_PROCESSORS = [\n 'django.contrib.auth.context_processors.auth',\n ...\n 'django.core.context_processors.request',\n ...\n 'front_edit.context_processors.defer_edit'\n ]\n # or for django >1.8\n TEMPLATES = [\n {\n 'BACKEND': 'django.template.backends.django.DjangoTemplates',\n 'DIRS': [],\n 'OPTIONS': {\n 'context_processors': [\n 'django.contrib.auth.context_processors.auth',\n ...\n 'django.template.context_processors.request',\n ...\n 'front_edit.context_processors.defer_edit'\n ]\n }\n }\n ]\n ...\n\n INSTALLED_APPS = [\n ...\n 'django.contrib.contenttypes',\n 'django.contrib.admin',\n 'django.contrib.auth',\n 'django.contrib.sessions',\n ...\n 'front_edit',\n ...\n ]\n\n ...\n\nIn your main urls.py file:\n\n::\n\n ...\n url(r'', include('front_edit.urls')),\n ...\n\nThere is nothing to syncdb or migrate.\n\nUsage\n-----\n\nThis app uses template tags for all its functionality.\n\nTemplate tags\n~~~~~~~~~~~~~\n\nMake sure to load up ``front_edit_tags`` in your template.\n\nEdit...EndEdit\n^^^^^^^^^^^^^^\n\n **Arguments:** object.field... [class\\_name]\n\n **object.field:** This argument consist of multiple arguments of dot\n separated object/field variables. Currently only fields within the\n same model object can be edited per tag. **class\\_name:** This\n optional argument is the class name(s) to put on the form, edit\n button, and overlay in case you need to adjust them.\n\nThis tag specifies an editable region.\n\nEditLink...EndEditLink\n^^^^^^^^^^^^^^^^^^^^^^\n\n **Arguments:** admin\\_url, [class\\_name]\n\n **admin\\_url:** A URL string to link to. **class\\_name:** This\n optional argument is the class name(s) to put on the form, edit\n button, and overlay in case you need to adjust them.\n\nThis tag specifies an editable region that will link to an admin page\ninstead of editing inline. For example:\n\n::\n\n {% url 'admin:constance_config_changelist' as admin_url %}\n {% edit_link admin_url %}\n
{{ config.FOO }}
\n {% endedit_link %}\n\nEditWithHints...EndEditWithHints\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\n **Arguments:** None\n\nThis tag is used to make editable each object in a collection of\npagelets each marked with **EditHint** tags.\n\nEditHint\n^^^^^^^^\n\n **Arguments:** object fields [class\\_name]\n\n **object:** A model instance. **fields:** A list of fields on this\n model, i.e. 'field1,field2,...,fieldN' **class\\_name:** This\n optional argument is the class name(s) to put on the form, edit\n button, and overlay in case you need to adjust them.\n\nThis tag adds a hint to a small cacheable template used in a pagelet\nsystem.\n\nEditLoader\n^^^^^^^^^^\n\n **Arguments:** None\n\nThis tag includes all the boilerplate to make the front-end editing\nwork. This tag should always be right before the end ```` tag in\nyour base template.\n\nJavaScript\n~~~~~~~~~~\n\nThere is one command that you can call if you need to reposition the\nedit elements. You should call this if any JavaScript will change the\noffset of in-flow elements.\n\n::\n\n djangoFrontEdit.refresh();\n\nExample\n~~~~~~~\n\n::\n\n pagelet_text.html\n {% load front_edit_tags %}\n
\n
\n {{ instance.title }}\n
\n
\n {{ instance.content|safe }}\n
\n
\n\n pagelet_image.html\n {% load front_edit_tags %}\n
\n
\n \n
\n {{ instance.caption }}\n
\n
\n
\n\n somepage.html\n {% load front_edit_tags pagelet_tags %}\n \n \n \n \n
\n \n
    \n {% for object in objects %}\n {% edit object.text_field object.char_field \"class_name\" %}\n
  • \n {{ object.text_field }}\n {{ object.char_field }}\n
  • \n {% endedit %}\n {% endfor %}\n
\n \n \n \n \n {% for object in objects %}\n {% edit object.text_field object.char_field \"class_name\" %}\n \n {% endedit %}\n {% endfor %}\n \n \n
\n {{ object.text_field }}\n {{ object.char_field }}\n
\n
\n \n
\n {% edit_with_hints %}\n {% render_pagelets object.pagelets %}\n {% endedit_with_hints %}\n
\n
\n \n {% edit object.text_field \"class_name\" %}\n {{ object.text_field }}\n {% endedit %{\n
\n {% edit_loader %}\n \n \n\nAdvanced\n========\n\nSettings\n--------\n\n Settings can be set by using the individual settings or by\n specifying a dictionary as follows:\n\n::\n\n FRONT_EDIT_SETTINGS = {\n 'CUSTOM_FIELDS':['path.to.custom.field'],\n ...\n 'USE_HINTS':True,\n }\n\nFRONT\\_EDIT\\_CUSTOM\\_FIELDS\n~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n **Default:** []\n\n A list of dot-separated paths to a custom model field such as a rich\n text field or file field that has a Media class on its widget.\n\nFRONT\\_EDIT\\_DEFER\\_KEY\n~~~~~~~~~~~~~~~~~~~~~~~\n\n **Default:** '\\_\\_front\\_edit\\_defer'\n\n The context key used to defer display of the collective editable\n loader templates.\n\nFRONT\\_EDIT\\_EDITABLE\\_TEMPLATE\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n **Default:** 'front\\_edit/includes/editable.html'\n\n This template is the editable. Which includes the form, edit button,\n and overlay.\n\nFRONT\\_EDIT\\_HTML\\_PARSER\n~~~~~~~~~~~~~~~~~~~~~~~~~\n\n **Default:** 'html5lib'\n\n Change the html parser used by beautifulsoup. By default we use\n 'html5lib', but we also support 'lxml'. You will have to install\n either of those libraries. We do not support the builtin\n 'html.parser' library due to incompatibilities.\n\nFRONT\\_EDIT\\_INLINE\\_EDITING\\_ENABLED\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n **Default:** True\n\n Option to disable inline editing.\n\nFRONT\\_EDIT\\_JQUERY\\_BACKUP\n~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n **Default:** 'front\\_edit/js/jquery.min.js'\n\n The path to the static jquery backup library if the CDN is down. The\n value is passed through the ``static`` tag.\n\nFRONT\\_EDIT\\_JQUERY\\_BUILTIN\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n **Default:** True\n\n Whether or not to use the builtin jquery library or rely on the\n library already being present in the final document.\n\nFRONT\\_EDIT\\_JQUERY\\_CDN\n~~~~~~~~~~~~~~~~~~~~~~~~\n\n **Default:** '//ajax.googleapis.com/ajax/libs/jquery/'\n\n The url to the CDN to use for jquery. The version and file name are\n appended. i.e. path/1.11.2/jquery.min.js\n\nFRONT\\_EDIT\\_JQUERY\\_VERSION\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n **Default:** '1.11.2'\n\n The default version of jquery to fetch from the CDN.\n\nFRONT\\_EDIT\\_LOADER\\_TEMPLATE\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n **Default:** 'front\\_edit/loader.html'\n\n This template is the main boilerplate.\n\nFRONT\\_EDIT\\_LOGOUT\\_URL\\_NAME\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n **Default:** 'admin:logout'\n\n Set the name of the logout url.\n\nFRONT\\_EDIT\\_TOOLBAR\\_TEMPLATE\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n **Default:** 'front\\_edit/includes/toolbar.html'\n\n This template is the admin toolbar.\n\nFRONT\\_EDIT\\_USE\\_HINTS\n~~~~~~~~~~~~~~~~~~~~~~~\n\n **Default:** False\n\n Whether or not to activate the use of **EditHint** tags.\n\nFRONT\\_EDIT\\_VIGENERE\\_KEY\n~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n **Default:** None\n\n A vigenere key used to obfuscate edit hints. Optional.\n\nCustom Media and JS variables\n-----------------------------\n\nIf the FRONT\\_EDIT\\_CUSTOM\\_FIELDS setting doesn't satisfy your needs\nyou will need to do the following.\n\n1. Change FRONT\\_EDIT\\_LOADER\\_TEMPLATE to your own template, it should\n have a different name than 'front\\_edit/loader.html'.\n\n2. In your template extend 'front\\_edit/loader.html'.\n\n3. Use the block 'ft\\_extra' to set or run javascript code. No script\n tags are needed.\n\n4. Use the block 'ft\\_extra\\_media' to define media such as CSS or JS\n files.", "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/dwaiter/django-front-edit", "keywords": "django front-end editing admin tools dynamic management utilities", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "django-front-edit", "package_url": "https://pypi.org/project/django-front-edit/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-front-edit/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://bitbucket.org/dwaiter/django-front-edit" }, "release_url": "https://pypi.org/project/django-front-edit/1.2.1/", "requires_dist": null, "requires_python": null, "summary": "Front end editing for Django.", "version": "1.2.1" }, "last_serial": 3090210, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "1fd01baaa8f200e9358e58ab0673604f", "sha256": "787b199024655dc0250f57b8da1dd199800f7eceba621b7be3536c84019da8d9" }, "downloads": -1, "filename": "django-front-edit-1.0.tar.gz", "has_sig": false, "md5_digest": "1fd01baaa8f200e9358e58ab0673604f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7381, "upload_time": "2014-08-19T18:00:55", "url": "https://files.pythonhosted.org/packages/00/71/794464ef69aa209e6a16ddf1dbc58912a2841d8c6863872e3fc6dfbc18ca/django-front-edit-1.0.tar.gz" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "07740e5579fd66e55794355b1c515f45", "sha256": "6cd4d74c23b996847d2f91aeb6cb696664a23382bddf0175af10349b87e941ec" }, "downloads": -1, "filename": "django-front-edit-1.2.1.tar.gz", "has_sig": false, "md5_digest": "07740e5579fd66e55794355b1c515f45", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 61438, "upload_time": "2015-08-26T19:02:40", "url": "https://files.pythonhosted.org/packages/17/48/6e03a38e91bb6a8ffe11499af7b521c24bdd7eca395c973ed83d3638c436/django-front-edit-1.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "07740e5579fd66e55794355b1c515f45", "sha256": "6cd4d74c23b996847d2f91aeb6cb696664a23382bddf0175af10349b87e941ec" }, "downloads": -1, "filename": "django-front-edit-1.2.1.tar.gz", "has_sig": false, "md5_digest": "07740e5579fd66e55794355b1c515f45", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 61438, "upload_time": "2015-08-26T19:02:40", "url": "https://files.pythonhosted.org/packages/17/48/6e03a38e91bb6a8ffe11499af7b521c24bdd7eca395c973ed83d3638c436/django-front-edit-1.2.1.tar.gz" } ] }