A Django app provided ORM to TrustMed medical information system
Project description
Настройка
python -m pip install django~=4.0 mssql-django
django-admin startproject config
Добавляем подключение к БД МИС в файле config/config/settings.py
:
DATABASES = {
'default': {
...
},
'tmmis' : {
'ENGINE' : 'mssql',
'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
Release history Release notifications | RSS feed
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.2.0b4.tar.gz
(17.6 kB
view hashes)
Built Distribution
Close
Hashes for django_tmmis-0.2.0b4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95285b5b8f9d85f1683a22a9f5f68fe367879dec61a059b57335f59cdc612cd0 |
|
MD5 | e8c89ee18d9101e551135ba081614eb1 |
|
BLAKE2b-256 | 55f6e8f8837637ed893bfcefebf5c351326b7bb22af37ba3f661ba5c445e9ddf |