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.5.tar.gz
(24.9 kB
view hashes)
Built Distribution
Close
Hashes for django_tmmis-0.3.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6f40891cdb0d050804502f9cc9ef18b7004f491434823208bd56e1290829d07 |
|
MD5 | c494b285299c6af0c4396eccb2f89ca9 |
|
BLAKE2b-256 | 007a6b8ee20e0a0dc31bae766ff5c07cfb1de47b8d47c21cc78afbf81b9685eb |