LINUX CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>

7-DAY TOP DOWNLOAD

#
Program
BackTrack 4 Final
9,178
TeamSpeak 2
2.0.32.60

3,920
Wine 1.0.1 / 1.1.38
3,273
VLC 1.0.5
3,185
Charles Web
Debugging Proxy
3.5.1

2,387
Yahoo Messenger
1.0.4

2,346
Adobe Flash Player
for Linux 10.0.42.34
/ 10.1 Beta

1,778
Ubuntu 9.10
1,698
Thunderbird PST
Import plugin 1.2

1,644
Corel Photo-Paint 9
1,492

WEEK'S BEST

  • Ubuntu 9.10
  • Ubuntu Netbook Rem...
  • Pidgin 2.6.5
  • Wine 1.0.1 / 1.1.38
  • Linux Kernel 2.6.3...
  • Mozilla Firefox 3.6
  • Fedora 12
  • OpenOffice.org 3.2.0
  • Firestarter 1.0.3
  • The Gimp 2.6.8 / 2...
  • FileZilla 3.3.1
  • Transmission 1.83
  • Super Grub Disk 0....
  • Gufw 9.10.4
  • Skype 2.0.072 / 2....
  • openSUSE Linux 11....
  • Opera 10.50 Build ...
  • Adobe Flash Player...
  • wine-doors 0.1.3
  • Google Gadgets 0.1...
  • Home / Linux / Internet / HTTP (WWW)

    django-lockdown 0.1.1

    Download button

    No screenshots available
    Downloads: 78  Add to download basket  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Carl Meyer | More programs
    BSD License / FREE
    November 25th, 2009, 12:49 GMT [view history]
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Add a review  Refer to a friend  Subscribe

     

    django-lockdown description

    Site-wide or per-view lockdown with customizable preview authorization

    django-lockdown is a simple Django reusable application for locking down an entire site (or particular views), with customizable preview authorization (defaults to single password).

    Installation:

    Install from PyPI with easy_install or pip:

    pip install django-lockdown

    or get the in-development version:

    pip install django-lockdown==dev

    To use django-lockdown in your Django project:

     1. Add 'lockdown' to your INSTALLED_APPS setting.
     2. To enable admin preview of locked-down sites or views with a single password, set the LOCKDOWN_PASSWORD setting to a plain-text password.
     3. To lock down the entire site, add 'lockdown.middleware.LockdownMiddleware' to your INSTALLED_APPS setting. Optionally you may also add URL regular expressions to the LOCKDOWN_URL_EXCEPTIONS setting.
     4. To protect only certain views, apply the lockdown.decorators.lockdown decorator to the views you want to protect.

    For more advanced customization of admin preview authorization, see the LOCKDOWN_FORM setting.

    Settings:

    LOCKDOWN_PASSWORD

    The plain-text password required to preview a site or views protected by django-lockdown:

    LOCKDOWN_PASSWORD = 'letmein'

    If neither this setting nor LOCKDOWN_FORM is provided, there will be no admin preview for locked-down pages.

    LOCKDOWN_URL_EXCEPTIONS

    Optional: a list/tuple of regular expressions to be matched against incoming URLs. If a URL matches a regular expression in this list, it will not be locked:

    LOCKDOWN_URL_EXCEPTIONS = (r'^/about/$', # unlock /about/
     r'.json$') # unlock JSON API

    LOCKDOWN_FORM

    By default, django-lockdown allows admin preview by entering a preset plain-text LOCKDOWN_PASSWORD. To set up more advanced methods of authenticating access to locked-down pages, set LOCKDOWN_FORM to the Python dotted path to a Django Form subclass. This form will be displayed on the lockout page. If the form validates when submitted, the user will be allowed access to locked pages:

    LOCKDOWN_FORM = 'path.to.my.CustomLockdownForm'

    LOCKDOWN_SESSION_KEY

    Once a client is authorized for admin preview, they will continue to be authorized for the remainder of their browsing session (using Django's built-in session support). LOCKDOWN_SESSION_KEY defines the session key used; the default is 'lockdown-allow'.

    Templates:

    Django-lockdown uses a single template, lockdown/form.html. The default template displays a simple "coming soon" message and the password entry form.

    If you override this template, the lockdown preview form is available in the template context as form.

    Please report bugs to the official home page: http://bitbucket.org/carljm/django-lockdown/

    Requirements:

    · Python
    · Django

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

    · Fix setup.py so tests package is not installed.

      


    TAGS:

    website lockdown | Django plugin | per-view lockdown | Django | website | lockdown



    HTML code for linking to this page:


    Go to top

    Windows tabGames tabDrivers tabMac tabLinux tabScripts tabMobile tabHandheld tabGadgets tabNews tab

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   ENTER NEWS SITE   |   ENGLISH BOARD   |   ROMANIAN FORUM