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.
- Django 4.2
- Python 3.8 - 3.9
-
Download and install django-locking.
$ pip install git+git://github.com/unt-libraries/django-locking.git
-
Add app to INSTALLED_APPS.
INSTALLED_APPS = ( 'locking', )
-
Clone the git repository:
git clone https://github.com/unt-libraries/django-locking.git
-
Navigate into the cloned repository:
cd django-locking
-
Install the requirements (preferably in a virtual environment):
python setup.py install
-
Run the migrations:
python manage.py migrate --run-syncdb
-
Create a superuser so you can log into the admin interface
python manage.py createsuperuser
-
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
-
Run the tests (inside the virtualenv):
python manage.py test
See LICENSE