The Quakers & Mental Health portal launched in the summer of 2015 as an interactive website to hold scholarship about the history of mental health in Philadelphia, in the 19th and 20 centuries, and in particular of Friends Hospital, the first private mental health institution in the United States. This multi-year project combines archival research and writing with digital scholarship to create and support scholarship on the history of mental health, to analyze data and create visualizations from that research. The Friends Hospital records, which are on loan to Haverford College Quaker & Special Collections, offer a wealth of information on Quakerism, the treatment of the mentally ill, and the development of American psychiatric hospitals in the 19th and 20th centuries.
This project consists of basic static pages built on Django, and uses Plotly to create interactive data visualizations.
- Install Docker Desktop
- Clone the project and point Docker Desktop to the project directory.
- Visit
http://localhost:8000
in your browser.
See Deploying Docker Projects.
In the repo, add images to this directory /myAsylum/qmh/static/images. The static image mounting does not appear to be correctly set up. This needs to be fixed in the future. In the meantime, you can manually copy the image from the upload directly to the static folder it wants to be in:
Example:
cd /srv/qmh-v2/myAsylum/static/images
cp /srv/qmh-v2/myAsylum/qmh/static/images/GenderDeath.png GenderDeath.png
- Upload the PDF to this static folder (note: there are two static folders, we don't know why.
/myAsylum/static/essays
in the correct one). - Create the html template in
/myAsylum/qmh/templates/
(you can mostly duplicate an existing essay template) - Add the page to the
views.py
here - Add the page in
urls.py
here - Update the table in
essays.html
here to include the link to your new essay page - Commit & merge your changes
- Deploy your changes to the server and restart the server (see above)