Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Django app for interact with atlassian libraries such as JIRA and Confluence.

Project description

https://img.shields.io/pypi/djversions/djangorestframework.svg https://img.shields.io/github/license/fluendo/django-atlassian.svg
Django-atlassian allows you to build a Atlassian Connect apps using Django, it includes:
  • JWT support
  • Jira’s django db backend
  • Confluence’s django db backend

Installation

Download and install using pip install django-atlassina

$ pip install django-atlassian

Example Configuration

Backend mode

DATABASES = {
    'jira': {
        'ENGINE': 'django_atlassian.backends.jira',
        'NAME': 'https://your-site.atlassian.net',
        'USER': '', # Your user
        'PASSWORD': '', # Your password
        'SECURITY': '',
    },

DATABASE_ROUTERS = ['django_atlassian.router.Router']

Application mode

In this mode, you setup a database configuration to connect to a specific Jira/Confluence cloud instance. All custom fields will be automatically introspected.

Setup the router to make the connected host model be accessed through their own database:

DATABASE_ROUTERS = ['django_atlassian.router.Router']

ALLOWED_HOSTS = ['<ID>.ngrok.io']

Create a basic atlassian-connect.json template file:

{
    "name": "<Your app name>",
    "description": "<Your app description>",
    "key": "<Your app private key>",
    "baseUrl": "<Your host set on ALLOWED_HOSTS>",
    "vendor": {
        "name": "<Your company>",
        "url": "<Your website>",
    },
    "authentication": {
        "type": "jwt"
    },
    "lifecycle": {
        "installed": "{% url 'django-atlassian-installed' %}"
    },
    "scopes": [
        "read", "write"
    ],
    "apiVersion": 1,
    "modules": {
    }
}

Contributing

If you’d like to contribute, the best approach is to send a well-formed pull request, complete with tests and documentation. Pull requests should be focused: trying to do more than one thing in a single request will make it more difficult to process.

Project details


Download files

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

Files for django-atlassian, version 0.1.4
Filename, size File type Python version Upload date Hashes
Filename, size django-atlassian-0.1.4.tar.gz (20.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page