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.13.tar.gz
(16.8 kB
view hashes)
Built Distribution
Close
Hashes for django_tmmis-0.1.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aab83a8a7f4726b248048da68be8f6bcecfdee1d55aea788f9094a89c2a88de9 |
|
MD5 | 36f3df0f152a2e26e49588290a01f6a1 |
|
BLAKE2b-256 | cf9af7c1c8b4806e8c5cd37cf6521092b147c31535698af4eb5e3c4bf9c09fc7 |