develop
master
Heroku Production (master) URI: https://nyu-mercury-prod.herokuapp.com/
Heroku Staging (develop) URI: https://nyu-mercury.herokuapp.com
Heroku Dashboard: https://dashboard.heroku.com/pipelines/35c0558f-127e-482b-8cdf-3f4d24464872
- From the root of the repo, run
scripts/setup.sh
. Activate your virtualenv first. - To run the server, run
python manage.py runserver
.
You should now be able to view the site at http://127.0.0.1:8000/
N.B.: <something>
means you need to change the something
text within the angle brackets (and do not include the include brackets in your command).
- Make a feature branch
git checkout -b <new_branch_name>
- Make your changes
- Check you are using consistent style by running
scripts/check.sh
and make any recommended changes (such as running black to re-format). - Run your tests with
python manage.py test
and fix errors. - Use
git add <filename> ...
to add files you changed or more conveniently,git add -A
. - Commit your changes with
git commit -m "<message_of_what_this_commit_does>"
. - Push your branch to the origin fork with
git push origin <new_branch_name>
of the branch you made locally. - Visit our repo to create a Pull Request or use the link that the
git
command printed for you. - Add someone on the team as a review or share your URL to the Slack channel.
Running into issues with modules not find? Did requirements.txt
update from your last git pull
command? Run pip install -r requirements.txt
to install missing modules.
Are you missing staticfiles when trying to run or test locally? Run python manage.py collectstatic
to regenerate them.
Run python manage.py runserver
from the root of this Git repo
Run python manage.py test