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.16.tar.gz
(16.8 kB
view hashes)
Built Distribution
Close
Hashes for django_tmmis-0.1.16-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1cda971b34aedf34fc9fcb4ffdc909f24bf9b5c9a670e38a85f736811cc75dc |
|
MD5 | 8fecc92cc118aebaa52e634fa5676532 |
|
BLAKE2b-256 | bd5ad614d39464f82f6c6620d07d7add83b07849bf94742f85ee6e0129c74696 |