Skip to main content

Django Coturn is a Django app to synchronize django admins/users with Coturn's user database. Coturn is an open-source STUN/TURN/ICE server.

Project description

Django Coturn is a Django app to synchronize django admins/users with Coturn’s user database. Coturn is an open-source STUN/TURN/ICE server.

https://github.com/coturn/coturn

Quick start

  1. Add “coturn” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        "django_coturn",
    ]
  2. Create an empty coturn database

  3. Configure the following in your settings.py:

    DATABASES = {
        ... your default and auxilary database configs
        "coturn": env.db("COTURN_DATABASE_URL")
    }
    
    COTURN_REALM = "turn.example-domain.com"
    COTURN_SECRET_KEY = "127 character secret"
  4. Run python manage.py migrate to create the coturn models.

  5. Run python manage.py sync_coturn {turn_secret,turn_admin,turn_user} to sync users/admin data to coturn tables. You only need to do this once per table - subsequent updates will be handled by Django signals.

Contributor’s Guide

  1. Create a development environment (requires docker & docker-compose):

    make dev
  2. Run tests and generate a coverage report:

    make tests
  3. Run black linter:

    make lint

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_coturn-0.1.0.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

django_coturn-0.1.0-py3-none-any.whl (24.4 kB view details)

Uploaded Python 3

File details

Details for the file django_coturn-0.1.0.tar.gz.

File metadata

  • Download URL: django_coturn-0.1.0.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for django_coturn-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c1b532be190eb2db3d816029da39d7c459a3ad4b4a92935234a1c050cf20887a
MD5 6a31a947712002289ae88442e7a434f0
BLAKE2b-256 65b833ffbabf547ac0dc1361910f650271e6d55d11c019a7de7225acd9491dfd

See more details on using hashes here.

Provenance

File details

Details for the file django_coturn-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: django_coturn-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 24.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for django_coturn-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c138d043adf9a873ad145cb675ebac369a98f056dc136a71f6241d0e40b987aa
MD5 c60a2a185de339f02d4ba157686f35e1
BLAKE2b-256 95f538b66081b4c2b297e297c15ff7cae88e6172f99385da3395a33ec864ec49

See more details on using hashes here.

Provenance

Supported by

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