Package: django-flatpages-filer
An extension to provide easy integration betweendjango.contrib.flatpagesandDjango-filer“A file management application for django that makes handling of files
and images a breeze”.Thwdjango-flapages-filerapp aims to provide a seamless experience
to users of the
standard flatpages app. It enhances the standard flatpages Admin
with inline forms that allow you to include references to your filer based
images and files (attachments). It also allows you to easily maintain content
using a markup format such asMarkdown.However, thecontrib.Flatpagemodel (content, titles)
is not be affected by installing or removing this app.
Your templates do not have to be modified as they will
still utilize the{{ flatpage.content }}and{{ flatpage.title }}context variables.  Once it is installed, content changes are actually
stored in a related  modelflatpages_filer.models.Revisionsusually
in a markup format. The Revision model which also keeps track of
content changes making it easy to revert to an earlier versions.
The modifiedAdmin ChangeFormensures you can view the latest
version of your content in the appropriate markup format and when
you save aflatpagethis markup content  will be rendered to
to html via a  specified parser.Additionally,django-flatpages-filer:Comes with a defaultMarkdownparser. By default thecodehiliteandextraextensions are supported but you can specify
your own list of extensions in your Django settingsYou can easily write your own parser to support to support markup
formats such as rst or creole.Provides optional support for the excellentmarkItUpwidget.
This requires the installationdjango-markitup.Provides templatetags to supportHTML metatagssuch as keywords and
descriptions in flatpages.ContributorsChristopher ClarkeLendl R SmithMikhail AndreevRaumkrautQuickstartCreate a virtual environment for your project and activate it:$ virtualenv mysite-env
$ source mysite-env/bin/activate
(mysite-env)$Next installflatpages_filer(mysite-env)$ pip install django-flatpages-filerAddflatpages_filerto your INSTALLED_APPS setting.Inside your project run:(mysite-env)$ python manage.py syncdbDjango-flatpages-filer comes with support forMarkdownTo include filer images in your content use a standard markdown image
reference![Atl text][filer_image.pk]For a link to a file[Atl text][filer_file.pk]Wherepkrefers to the primary key of the filer file or image.
To facilitate easy inclusion of the images and file attachments in your markdown
content theFlatpages Adminnow contains Inline image and file attachment
forms which allow you to to associate the filer images or files with
theflatpageonce you save theflatpagethe correct markdown
image/file reference should is visible in Inline image form.markItUp supportIf you want to use the excellent markItUp! editor widget. Install django-markItUp:(mysite-env)$ pip install django-markitupYou need a few configuration stepsAdd ‘markitup’ to your INSTALLED_APPS setting.Add the following to settings:MARKITUP_SET = 'markitup/sets/markdown'
MARKITUP_SKIN = 'markitup/skins/markitup'
MARKITUP_FILTER = ('markdown.markdown', {'safe_mode': True})You need to use the AJAX-based preview for the admin widget:url(r'^markitup/', include('markitup.urls'))in your root URLconf.Markup ParsersDjango-flatpages-filer includes a Markdown parser that
supportscodehiliteandextraextensions. You can
support additional extensions by first installing the extension
an adding the following to you Django settingsFLATPAGES_FILER_PARSER= ["flatpages_filer.markdown_parser.parse",
                        {'extensions': ['codehilite','extra', 'abbr']}]You can also supply your own parser by setting the value forFLATPAGES_FILER_PARSERto point to your parserFLATPAGES_FILER_PARSER= ["myproject.myapp.creole_parser.parse",
                        {'emitter': FilerEmmiter}]Note we expect that yourparsewould have the following signatureparse(text, [list of `extensions, emitters etc.])Migrating From Flatpages-xBefore installing todjango-flatpage-filerdump the data in the Revison
modelpython manage.py dumpdata flatpages_x.Revision > revision.jsonRemoveflatpage_xfrom you settings and install django-flatpages-filer and
addflatpages_filerto the settings. To import your revision data editrevision.jsonand change all occurences offlatpages_x.revisiontoflatpages_filer.revision. Finally, runpython manage.py loaddata ~/usr/folder/revision.jsonDocumentationSee thefull documentationfor more details.