Website running user and event management.
We, the community and staff, have been building a custom Django application to handle out many parts of our organization.
.env
based on .env.sample
.python -c "import secrets; print(secrets.token_urlsafe())"
.env
file for SECRET_KEY
. Be sure to include the double quotes ("
) around the key. It'll look like the following SECRET_KEY="<unique-key-here>"
.docker-compose build
docker-compose up
ctrl+c
Note: Docker for Mac requires OSX Yosemite 10.10.3 or above. Docker for Windows requires Microsoft Windows 10 Professional, Enterprise 64-bit, Windows 10 Home (version 1903 or higher w/WSL 2). For previous versions download Docker Toolbox.
username: [email protected]
password: admin
username: [email protected]
password: mentor
username: [email protected]
password: guardian
After the initial project setup, you will only need to run docker-compose up --build
.
upstream
To setup the main respository as upstream
, you can add a new remote called upstream
.
git remote add upstream https://github.com/WeAllCode/website.git
upstream
To grab the latest code from the main repo (named upstream
), run the following.
git fetch upstream --prune
git checkout master
git merge upstream/master master
Create a new branch based off of upstream
's master
branch.
git fetch upstream --prune
git checkout -b feature/a-good-name upstream/master
git push -u origin feature/a-good-name
Pull requests are always welcome. Make sure your pull request does one task only. That is, if it's fixing a bug, the pull request fixes only that bug. If you're adding a feature, make sure the pull request adds that one feature, not multiple at once.
Follow the "Creating a new branch" step above. Be sure to always push to your origin
remote, not upstream
.
docker-compose run --rm app <command>
Examples:
docker-compose run --rm app /bin/bash
docker-compose run --rm app poetry lock
docker-compose run --rm app python manage.py makemigrations
docker-compose run --rm app python manage.py migrate
docker kill $(docker ps -q); docker-compose rm -f; docker volume rm $(docker volume ls -qf dangling=true);
docker-compose build