Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Internet > HTTP (WWW)

    django-navigen 0.1.3

    Download button

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

    License / Price:

    Last Updated:

    Category:
    Brandon R. Stoner | More programs
    MIT/X Consortium Lic... / FREE
    July 8th, 2011, 18:58 GMT [view history]
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    django-navigen description

    Dynamic navigation menu generation for Django

    django-navigen is a Django app that provides components that simplify the creation of dynamic navigation menus in Django. You can use to to have django automatically generate menus with menu items that reflect the permissions of the currently logged in user.

    Getting started

    Just like other django apps, django-navigation is really easy to get started with. Simply install it with:

        python setup.py install

    After this is installed, open up your project's settings.py file and add 'navigation' to your INSTALLED_APPS.

        INSTALLED_APPS = (
            # Your other apps listed here
            'navigation',
        )


    Now, as a final step - have django synchronize your database:

        ./manage.py syncdb

    How does this work?

    You should now have all that you need to use django-navigation within your application. In order to test this it is good to know the terminology used by the navigation system or you might be confused or think that the application is overly complicated. However, remember that django-navigation was made with the following goals in mind:

    * All menus are generated dynamically
    * Menu items reflect the context of the user, and their related permissions. Users shouldn't see what they can't access.
    * The application should support as many dynamic menus as required by the design out-of-the-box.
    * Drop-down menus should be easily created without any extra code.

    These are established by organizing each menu as a *"navigation tree"*, and relating each tree's top-level *"menu items"* to a navigation tree. A tree is accessed by your template by it's *"access name"*, and multiple trees can make use of the same *"menu item"* when necessary.

    Trees are represented in django's ORM with the **NavigationTree** model. This model is fairly simple, and only contains the following properties:

    * name - The human readable name for this specific **NavigationTree** instance.
    * access_name - The name that will be supplied as a string to access this tree.

    Leaves in the tree are represented by the **NavigationItem** model which describes a single link that can be assigned to a tree, and can also be assigned to a parent menu item for dropdowns.


    Product's homepage

    Requirements:

    · Python
    · Django

    What's New in This Release: [ read full changelog ]

    · PyPi support

      


    TAGS:

    dynamic navigation | navigation menu | Django navigation | Django | navigation | menu

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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