Skip to content

Latest commit

 

History

History
91 lines (62 loc) · 1.71 KB

README.md

File metadata and controls

91 lines (62 loc) · 1.71 KB

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