Skip to content

Prevents users from doing concurrent editing in Django. Works out of the box in the admin interface, or you can integrate it with your own apps using a public API.

License

Notifications You must be signed in to change notification settings

unt-libraries/django-locking

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-locking

About

django-locking provides a system that makes concurrent editing impossible, and informs users of what other users are working on and for how long that content will remain locked. Users can still read locked content, but cannot modify or save it.

Requirements

  • Django 4.2
  • Python 3.8 - 3.9

Installation

  1. Download and install django-locking.

    $ pip install git+git://github.com/unt-libraries/django-locking.git
  2. Add app to INSTALLED_APPS.

    INSTALLED_APPS = (
        'locking',
    )

Developing

  1. Clone the git repository:

        git clone https://github.com/unt-libraries/django-locking.git
  2. Navigate into the cloned repository:

        cd django-locking
  3. Install the requirements (preferably in a virtual environment):

        python setup.py install
  4. Run the migrations:

        python manage.py migrate --run-syncdb
  5. Create a superuser so you can log into the admin interface

        python manage.py createsuperuser
  6. Start the test server:

        python manage.py runserver

    The admin site of the test server can be viewed from a browser by navigating to the default location: http://localhost:8000/admin

Testing

  1. Run the tests (inside the virtualenv):

        python manage.py test

License

See LICENSE

Contributors

About

Prevents users from doing concurrent editing in Django. Works out of the box in the admin interface, or you can integrate it with your own apps using a public API.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 93.8%
  • JavaScript 5.8%
  • CSS 0.4%