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.2.0b2.tar.gz
(17.6 kB
view hashes)
Built Distribution
Close
Hashes for django_tmmis-0.2.0b2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c68c0b384e3c76f0727f70f28fc5ae0c241394e5c0171efc246953624392c4af |
|
MD5 | 6c72cccf144bd33f33d77a20374e746a |
|
BLAKE2b-256 | 81d9d97e1e8a5fc5b954823a7b560d13041cda88612f8549883a9217a5bad762 |