-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
88 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# SendIt Documentation | ||
|
||
## Overview | ||
The Sendit application is intended to be a modular application that includes the following: | ||
|
||
- a data folder that is watched for complete DICOM datasets. | ||
- an (optional) pipeline for de-identification, meaning removing/replacing fields in the header and image data. | ||
- (optionally) sending data to storage, meaning an Orthanc server, and/or Google Cloud Storage/Datastore | ||
|
||
Reasonable updates would be: | ||
|
||
- to add a DICOM receiver directly to the application using `pynetdicom3`, so instead of listening for datasets on the filesystem, we can receive them directly. | ||
|
||
|
||
## Module-specific Documentation | ||
|
||
- [Management](manager.md): an overview of controlling the application with [manage.py](../manage.py) | ||
- [Logging](logging.md): overview of the logger provided in the application | ||
- [Watcher](watcher.md): configuration and use of the watcher daemon to detect new DICOM datasets | ||
- [Deidentify](deidentify.md): the defaults (and configuration) for the de-identification step of the pipeline (under development) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# Django's Management | ||
Django is primarily controlled via `manage.py`, the file sitting in the base of the repo. You will see it's use in several scripts such as [run_uwsgi.sh](../run_uwsgi.sh) to do things like `makemigrations` and `migrate`. These commands in particular are used to update the database (given any changes in a `models.py` files that define the tables. Generally, you can run commands to control user generation, database updates and dumps, and even your own custom. The commands that I use most often are `shell` and (sometimes) `dbshell` to immediately get an interactive shell for the python application (shell) or the postgres database (dbshell). With `--help` we can see everything that `manage.py` can do: | ||
|
||
```bash | ||
[auth] | ||
changepassword | ||
createsuperuser | ||
|
||
[contenttypes] | ||
remove_stale_contenttypes | ||
|
||
[django] | ||
check | ||
compilemessages | ||
createcachetable | ||
dbshell | ||
diffsettings | ||
dumpdata | ||
flush | ||
inspectdb | ||
loaddata | ||
makemessages | ||
makemigrations | ||
migrate | ||
opbeat | ||
sendtestemail | ||
shell | ||
showmigrations | ||
sqlflush | ||
sqlmigrate | ||
sqlsequencereset | ||
squashmigrations | ||
startapp | ||
startproject | ||
test | ||
testserver | ||
|
||
[djcelery] | ||
celery | ||
celerybeat | ||
celerycam | ||
celeryd | ||
celeryd_detach | ||
celeryd_multi | ||
celerymon | ||
djcelerymon | ||
|
||
[guardian] | ||
clean_orphan_obj_perms | ||
|
||
[sessions] | ||
clearsessions | ||
|
||
[sitemaps] | ||
ping_google | ||
|
||
[staticfiles] | ||
collectstatic | ||
findstatic | ||
runserver | ||
|
||
[watcher] | ||
watcher_start | ||
watcher_stop | ||
``` | ||
|
||
For example, the last set of commands for the `watcher` we defined by adding a `management/commands` to our watcher application. |