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.3.9.tar.gz
(25.7 kB
view hashes)
Built Distribution
Close
Hashes for django_tmmis-0.3.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83b37ee44a1549e38af2c73e4c285245c7b9096158ddd85305449dc9c88a2ef5 |
|
MD5 | 3662e94603bc3d6895302dc34c558d2f |
|
BLAKE2b-256 | f9905987d5fc55c665550bb8b629d2419dd5164c3b8713bbf491873796f38444 |