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.26.tar.gz
(17.6 kB
view hashes)
Built Distribution
Close
Hashes for django_tmmis-0.1.26-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e68bc7f4fe94ffbdf6d385a1f2a4b2448529e9402269f1d69465ff4d15b88bf |
|
MD5 | faeed89825a817d09713d0a51930ef75 |
|
BLAKE2b-256 | 7ce32e3c4e6ad2eb2272aa60c2371e49007d9464dfb6ccd500e1704f0dc5e9e5 |