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.23.tar.gz
(17.1 kB
view hashes)
Built Distribution
Close
Hashes for django_tmmis-0.1.23-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eabf4d6edab2736fa8ef492678ec35345e473726a8a7e5c3ebd451764fd45dfb |
|
MD5 | 18e830c0e588b6d986aa2f238263563c |
|
BLAKE2b-256 | e33037b72bfa5c16085a79cd46912c986a6b44e18be65cf11d00b8d8abf3f17a |