• Home
  • Most Popular
  • Submit
  • About Us
  • Contact Us

Softpile

Free Downloads

Categories
  • Home
  • Most Popular
  • Communications
  • Desktop
  • Games & Entertainment
  • Graphic Apps
  • Network & Internet
  • Security & Privacy
  • System Utilities
Alternative to itextsharp 2022.11.10347
IronPDF offers an itextsharp alternative for HTML to PDF conversion with C# code examples, documentation, and ...
VShell Server for Linux and Mac 4.8
VShell is a versatile and secure file transfer server that supports multiple protocols and is compatible ...
PDF Studio PDF Editor for Linux 2022
PDF Studio is a cost-effective PDF editor that delivers full compatibility with the PDF Standard. It's ...
VQ Probe for Linux 1.5
VQ Probe is a comprehensive software tool that enables objective and subjective video quality analysis. The ...
Resilient Server 2.3
This Debian GNU/Linux (Buster) based software has a customized partitioning scheme that enhances robustness against filesystem ...
Valentina Studio for Linux 9.6
Valentina Studio is a cross-platform GUI manager for Mac, Windows, and Linux. It allows users to ...
VPN Lifeguard for Linux 1.0.58
The software monitors VPN connection and automatically terminates apps during connection loss, re-establishes the connection and ...
G_Viewer 0.84
G_Viewer is a Linux software that serves as both a file system and photo/image viewer. It ...
Checksome File Hash Tool for Linux 1.1
This software allows for the generation and verification of file hashes. It is a quick and ...
KeyWrangler Password Manager for Linux 1.2
A password management software that is secure, offline and extensible. It offers military-grade encryption to protect ...
Home Linux django-lock Download

django-lock

July 24, 2009
A safeguarding approach for Django views or entire websites.
Version 1.0
License MIT/X Consortium License
Platform Linux
Supported Languages English
Homepage code.google.com
Developed by Chris Beaven
Django-lock is a useful plugin that enables users to either lock down individual views or restrict access to their entire website. The plugin offers various configuration options, such as setting an administrative preview password or setting a date for when the site should become locked.

The installation process is relatively straightforward. The first step is to copy or symlink the django_lock directory to the Python path. In the second step, the user must add 'django_lock' to their INSTALLED_APPS setting. However, this step is only necessary if the user intends to utilize the site-wide lock or log out functions.

If the user wishes to use the site-wide lock, they must add 'django_lock.middleware.LockMiddleware' to their MIDDLEWARE_CLASSES setting. Afterward, they can use the lock settings to configure the locking features. Keep in mind that if the DEBUG setting is True, the django.static.views.serve view will not be locked.

To lock a view, the user must first import the lock decorator generator and create a decorator. The user may create multiple decorators if required. Once the user has created the decorator, they can use it to decorate their views by adding "@protect" before the view name. They can also add various arguments to the decorator to set customized rules, such as a preview_password or an until_date.

The plugin offers several settings used for the site-wide middleware, which provide defaults for lock decorators. The settings include LOCK_UNTIL_DATE, which locks the site until a given date, LOCK_AFTER_DATE, which locks the site after a specified date, LOCK_PREVIEW_PASSWORD, which is an administrative preview password, and LOCK_PASSTHROUGH, which allows access to specific URLs, while the lock is in place.

In conclusion, Django-lock is a fantastic plugin that provides users with various flexible configuration options. Its well-documented installation process and ease of use make it an excellent choice for individuals who want to restrict access to their website or specific web pages.
What's New

Version 1.0: N/A

Free Download 4K
368
  • Share on:

Most Popular

  1. Quicksilver Forums 1.4.2
    155
  2. Dvgrab 3.4
    102
  3. DynVPN 1.0
    92
  4. SlideMap 1.2.2
    82
  5. CherryTV 0.1
    81
  6. porm r2
    79
  7. Swiftfox 3.0b5pre-2
    77
  8. Java Games 1.0
    76
  9. Clewarecontrol 0.8
    75
  10. fuseftp 0.8
    74

Related Downloads

Thunar Media Tags Plugin
The Thunar Media Tags Plugin enhances the Thunar File Manager with advanced ...
awm
AWM is an X-based dynamic window manager that allows for efficient and ...
CPU::Emulator::6502::Op::ROL
The CPU::Emulator::6502::Op::ROL is a Perl module that enables left rotation through carry, ...
Yet Another Dynamic Engine
YADE is a flexible framework built with dynamic libraries for extensibility. Its ...
Engine_pkcs11
Engine_pkcs11 is an OpenSSL engine implementation that provides security and privacy for ...
IOR
IOR HPC Benchmark is a software tool that helps measure the input/output ...
Calife
Calife is a software solution that allows system admins to access root ...
namaste
Namaste is a software tool that functions like the "ls" command in ...
AsmEdit
AsmEdit is a software that resembles an old Intel editor and incorporates ...
castget
Castget is a tool that allows you to download RSS enclosures quickly ...
Copyright © 1999-2025 Softpile Free Downloads
  • Most Popular
  • Submit
  • About Us
  • Contact Us
  • Privacy Policy
  • Disclaimer
  • Terms of Use

Can we use your data to tailor ads for you?

Our partners will collect data and use cookies for ad personalization and measurement.

By choosing "I agree", closing this pop-up or clicking on any element on the page, you agree to the use of cookies to help us provide you with a better user experience.

Learn how Softpile and our partners collect and use data.

You can change your choice at any time in our privacy center.

Cookie Settings

Our website stores four types of cookies. At any time you can choose which cookies you accept and which you refuse. You can read more about what cookies are and what types of cookies we store in our Cookie Policy.

are necessary for technical reasons. Without them, this website may not function properly.

are necessary for specific functionality on the website. Without them, some features may be disabled.

allow us to analyse website use and to improve the visitor's experience.

allow us to personalise your experience and to send you relevant content and offers, on this website and other websites.