Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Internet > HTTP (WWW)

    minicms 0.5

    Download button

    No screenshots available
    Downloads: 150  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Pavel Puchkin | More programs
    LGPL / FREE
    August 29th, 2012, 13:42 GMT
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    minicms description

    Simple CMS app for Django which supports i18n

    minicms is simple CMS app for Django that supports i18n in some extent and markdown WYSIWYG editor inside admin.

    Installation

    Minicms should be installed using pip:

    pip install minicms

    Setup

     'minicms', 'django_markdown' and 'django.contrib.markup' should be in your INSTALLED_APPS

     INSTALLED_APPS += (
     'minicms',
     'django_markdown',
     'django.contrib.markup',
     )


    - Add 'dango_markdown' urls to base urls

     url('^markdown/', include('django_markdown.urls'))

    - Add 'minicms' urlpattern to base urls and specify view function

     ('^cms/(.+)/', 'minicms.views.show_page', name='minicms')

    - Of course, you may don't use any prefix at all. Just put below code at the end of urlpatterns:

     ('^(.+)/', 'minicms.views.show_page', name='minicms')

    - Create template 'minicms/default.html' somewhere Django can find it

    - Sync your database using manage.py syncdb

    Use minicms

    The main idea of minicms is that you want to have same content for each language. I. e. page in one language must be (or desirable to be) available in other language. If it isn't available, pages in default language will be showed to user. If it isn't available even for default language, minicms will try to show page in any other language or raise 404 (Not Found) exception if didn't find anything.

    So, user will always see any of available pages even if it isn't available in his language. Similar to how Django translation works.

    Each Page object have following attributes:

    - name - identifier of a Page, must be unique withing language
    - lang - in what language Page is written
    - title - title of a Page
    - content - content of a Page in markdown format

    name and lang attributes must be unique together.

    Minicms use 'minicms/default.html' template, and pass to it two context variables: page that represents current Page object and menu that a list of all available unique pages. So just create this template and work with this variables within it.

    Since minicms use markdown as markup language, within template you should load markup template library:

    {% load markup %}

    and pass page content through markdown template filter:

    {{ page.content|markdown }}


    Product's homepage

    Requirements:

    · Python
    · Django
    · django-markdown
    · Markdown

      


    TAGS:

    content management | Django CMS | Django | CMS | i18n

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM