Skip to main content

A Django app provided ORM to TrustMed medical information system

Project description

Pypi version Python versions Code style: black

Настройка

python -m pip install django~=3.2.11 django-mssql-backend
django-admin startproject config

Добавляем подключение к БД МИС в файле config/config/settings.py:

DATABASES = {
    'default': {
        ...
    },
    'tmmis'  : {
        'ENGINE'  : 'sql_server.pyodbc',
        'NAME'    : 'ИМЯ БД',
        'USER'    : 'sa',
        'PASSWORD': 'ПАРОЛЬ К БД',
        'HOST'    : 'АДРЕС СЕРВЕРА',
        'PORT'    : 1433,
        'OPTIONS' : {
            'driver': 'ODBC Driver 17 for SQL Server',
        },
    }
}

Интроспекция БД

Unix:

python config/manage.py inspectdb --database=tmmis {table_name} > tmmis/models/{table_name}.py

Windows:

 py .\config\manage.py inspectdb --database=tmmis {table_name} > .\tmmis\models\{table_name}.py

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-tmmis-0.1.20.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

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

django_tmmis-0.1.20-py3-none-any.whl (38.3 kB view details)

Uploaded Python 3

File details

Details for the file django-tmmis-0.1.20.tar.gz.

File metadata

  • Download URL: django-tmmis-0.1.20.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.16

File hashes

Hashes for django-tmmis-0.1.20.tar.gz
Algorithm Hash digest
SHA256 592acadc55ba5e3260114ad053a07acb55a50d4c65c2d989ed7d46bbbce0bc3b
MD5 9fcf625e87b32a54e4786313bf8b84e9
BLAKE2b-256 9adf41c28a2f6bdfac9299b3f5eb56bca898f458bb714854dcabdce267585440

See more details on using hashes here.

File details

Details for the file django_tmmis-0.1.20-py3-none-any.whl.

File metadata

  • Download URL: django_tmmis-0.1.20-py3-none-any.whl
  • Upload date:
  • Size: 38.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.16

File hashes

Hashes for django_tmmis-0.1.20-py3-none-any.whl
Algorithm Hash digest
SHA256 0451c8bfde22132d5f4e7653f4e9880657597d3bf24d843c1792e577984ae9df
MD5 47e8c020bcd786241ffe3c8af88412e5
BLAKE2b-256 a5c963c7bce2d792bce881d36c7307f217fc2275026edb66538e772637f28461

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