Skip to main content

Django latch module.

Project description

django-latch

Build Status codecov Documentation Status

Django and Latch integration. Originaly developed by Javier Olascoaga and RootedCON.

Requirements

  • Python 3.4, 3.5, 3.6, 3.7
  • Django 2.0, 2.1, 2.2

Installation

To install it, simply run:

$ pip install django-latch

Or, if you prefer installing from source:

$ git clone https://github.com/javimoral/django-latch.git
$ cd django-latch
$ python setup.py install

Configuration

In your settings.py file you need to add the following directives:

   INSTALLED_APPS = (
       [...]
        'latch',
    )

    # Add auth profile
    AUTH_PROFILE_MODULE='latch.UserProfile'

    # Append Latch Auth Backend the first in list
    AUTHENTICATION_BACKENDS = [
        'latch.auth_backend.LatchAuthBackend',
        [...]
    ]

    LATCH_APP_ID = <APP Id> # You can use os.environ if you prefer
    LATCH_APP_SECRET = <APP Secret>
    LATCH_BYPASS_WHEN_UNREACHABLE = True # True is the default behaviour. Configure as you need.

Configure app urls

    from django.urls import path, include

    urlpatterns = [
        [...]
        path('latch/', include('latch.urls'))
        [...]
    ]

Then apply migrations

$ python manage.py makemigrations

For more information, please refer to documentation.

Bugs and requests

Please report any bug/issue or feature request in GitHub issue tracker.

https://github.com/javimoral/django-latch/issues

License

This module is published under Apache 2.0 license. See LICENSE file for details.

latch-sdk-python is published under GNU General Public License 2.0. Rights belongs to ElevenPaths, more information and the updated version at: https://github.com/ElevenPaths/latch-sdk-python

Authors

Originaly developed by Javier Olascoaga and RootedCON.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-latch-0.3.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_latch-0.3-py2.py3-none-any.whl (30.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file django-latch-0.3.tar.gz.

File metadata

  • Download URL: django-latch-0.3.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for django-latch-0.3.tar.gz
Algorithm Hash digest
SHA256 5f4492e796e3cff4ebd86395355c154d3d47b6d1748b9d09fc3405c561b44d75
MD5 3cbf139c6e5dc7403b43c50a653f858d
BLAKE2b-256 52731bc14095d19e86a6fbfcc6e262752ed718a870544e6d2277b6906233682a

See more details on using hashes here.

File details

Details for the file django_latch-0.3-py2.py3-none-any.whl.

File metadata

  • Download URL: django_latch-0.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 30.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for django_latch-0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e752d7de68923512b790d602a4045751f946ea22400eb0e7e09dd5d47bee7029
MD5 e98a3fe29a08712b194584a3314ba8ff
BLAKE2b-256 5a5fc68de12cf7556192b4417f1da2445f6fa8020bb5bb4fe7ad56a046cd7e4d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page