A Django app provided ORM to TrustMed medical information system
Project description
Настройка
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
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.1.7.tar.gz
(15.7 kB
view hashes)
Built Distribution
Close
Hashes for django_tmmis-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81f142bc688110e77c19231fb0f0073a1739154f65a37943b5c1975ccd3c7fe4 |
|
MD5 | c1123efd040888e86da80a6eaf9251a0 |
|
BLAKE2b-256 | 98030ec0ba4ed943544b0584bc80e4884fa93bc40a59abbe4b29764e83ebbd36 |