This merge request significantly reorganizes the repository and sets it up to work with Gunicorn as a backend webserver behind an Apache reverse proxy. The new organization follows the recommendations from Two Scoops.
A summary of the changes is as follows:
config
directory which contains settings/
, the wsgi script (renamed to wsgi.py
from django.wsgi
), and the main urls.py
.gracedb
app to events
gracedb
directory for housing all apps, templates, and static contentcore
app for collecting random utilitiesdocs/
directoryevents
appThere is a corresponding update to the Puppet configuration for the server which needs to be applied in concert, as well as one to the gracedb scripts repository.
This update is functional and has passed all server and client unit tests for a new database constructed from migrations. One thing which needs to be done is to define a procedure for implementing it in an already-existing database. The main concern is renaming the gracedb
app to events
. This will require changes to the database tables. This is currently being tested and a full procedure will be posted before.
More details about the move to Gunicorn are on the redmine page.