- Notifications
You must be signed in to change notification settings - Fork0
Django app for interact with atlassian libraries such as JIRA and Confluence
License
aburgool/django-atlassian
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
- 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
Download and install usingpip install django-atlassina
$ pip install django-atlassian
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']
In this mode, you setup a database configuration to connect to a specific Jira/Confluencecloud 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 basicatlassian-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": { }}
If you'd like to contribute, the best approach is to send a well-formed pullrequest, complete with tests and documentation. Pull requests should befocused: trying to do more than one thing in a single request will make it moredifficult to process.
Database implementation:
Dynamic model field injection:
- http://blog.jupo.org/2011/11/10/django-model-field-injection/
- https://github.com/Zagrebelin/smyt_test/tree/master/msyt
- https://code.djangoproject.com/wiki/DynamicModels
- http://lazypython.blogspot.com/2008/11/django-models-digging-little-deeper.html
- https://code.djangoproject.com/ticket/22555
- https://stackoverflow.com/questions/2357528/explanation-of-contribute-to-class
- https://code.djangoproject.com/wiki/DevModelCreation
About
Django app for interact with atlassian libraries such as JIRA and Confluence
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Languages
- Python100.0%