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.20.tar.gz
(16.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django-tmmis-0.1.20.tar.gz.
File metadata
- Download URL: django-tmmis-0.1.20.tar.gz
- Upload date:
- Size: 16.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
592acadc55ba5e3260114ad053a07acb55a50d4c65c2d989ed7d46bbbce0bc3b
|
|
| MD5 |
9fcf625e87b32a54e4786313bf8b84e9
|
|
| BLAKE2b-256 |
9adf41c28a2f6bdfac9299b3f5eb56bca898f458bb714854dcabdce267585440
|
File details
Details for the file django_tmmis-0.1.20-py3-none-any.whl.
File metadata
- Download URL: django_tmmis-0.1.20-py3-none-any.whl
- Upload date:
- Size: 38.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0451c8bfde22132d5f4e7653f4e9880657597d3bf24d843c1792e577984ae9df
|
|
| MD5 |
47e8c020bcd786241ffe3c8af88412e5
|
|
| BLAKE2b-256 |
a5c963c7bce2d792bce881d36c7307f217fc2275026edb66538e772637f28461
|