Skip to Main Content
InterSystems Ideas
We love hearing from our users. Tell us what you want to see next and upvote ideas from the community.
* Bugs and troubleshooting should as usual go through InterSystems support.
Status Done by Community
Categories InterSystems IRIS
Created by Evgeny Shvarov
Created on Jan 22, 2022

Examples to work with IRIS from Django

Django is a Python based web framework: https://www.djangoproject.com/

Need a series of examples on how to build solutions with IRIS


Connecting Django to IRIS requires writing a backend package for IRIS. The currently implemented backends can be found here: https://github.com/django/django/tree/master/django/db/backends

There is a good high level overview of the requirements of this package in this video from 3:45 to about 17:00: https://www.youtube.com/watch?v=tkwZ1jG3XgA

An important factor in determining scope is knowing how much code will have to be changed in the SQLCompiler. The base class is in a different package, django.db.models.sql, and the existing implementations have very little or no code in a compiler subclass. For a more complete example of possible changes necessary, look at the unofficial MSSQL backend implementation: https://github.com/michiya/django-pyodbc-azure/tree/azure-2.1/sql_server/pyodbc.


Using Embedded Python option should be logical to get benefits from client-side and IRIS side development


  • ADMIN RESPONSE
    Feb 22, 2023

    Thank you for submitting the idea.

    This idea was implemented by Developer Community member(s). Please check the solution in the comments.