Softpedia
 


LINUX CATEGORIES:



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

    django-urldecorators 0.4

    Download button

    No screenshots available
    Downloads: 238  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Miloslav Pojman | More programs
    BSD License / FREE
    August 20th, 2012, 12:18 GMT
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    django-urldecorators description

    Apply view decorators and middleware components

    django-urldecorators is a reusable Django plugin which allows you to apply view decorators and middleware components depending on requested URL.

    Installation and usage:

    1) Run python setup.py install or add urldecorators directory on your PYTHONPATH

    2) In urls.py file replace 'from django.conf.urls.defaults import *' by 'from urldecorators.defaults import *'
      
     3) Pass list of decorators or middleware_classes to as argument to url function

    Example urls.py file:

      from urldecorators.defaults import *
     
      urlpatterns = patterns('',                      
          url(r'^private/$', include('example.private.urls'),
              decorators=['django.contrib.auth.decorators.login_required']),
          url(r'^articles/$', include('example.articles.urls'),
              middleware_classes=['django.middleware.cache.CacheMiddleware']),
      )



    Product's homepage

    Requirements:

    · Django
    · Python

      


    TAGS:

    view decorators | middleware components | URL decorators | Django | URL | decorators

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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