Note
GROUPS! See instructions.md for deployment instructions.
This is a set of helpful wrapper scripts and Docker configurations to self-host a multi-site Django server.
We have a wiki now! It goes a bit more in depth than this README does, so take a look at it if you're curious.
Make sure to install these system-wide!
- PyYAML
- Whitenoise version 6.8 or newer defined in the requirements.txt file is required for static files to be served correctly (or at all) - Issue #5
- Clone this repo to /django/source
git clone https://github.com/mase3206/django-multihost.git /django/source
- Navigate to /django/source via
cd
Warning
Do not run the following commands as root! Doing so will result in broken permissions. Run them as yourself and enter your password when prompted.
- Run
make groups
to set up the necessary groups for your user- adds your user to the 'docker' group
- creates and adds your user to the 'classadmin' group
- Run
make install
to:- set permissions
- create symlinks for 'deploy.py' to
deploy
and 'create-group.sh' tocreate-group
- Navigate to /django/source via
cd
- Run
make remove
to:- remove symlinks
- Delete the /django/source folder, if desired.
This code is licensed under the GPLv3 license. See LICENSE for more details or TL;DR Legal for a rundown.