curl -L http://bit.ly/cosmun-softwares-django-boilerplate | bash -s <project_name>
- Clone o repositório.
- Crie um virtualenv com Python 3.6
- Ative o virtualenv.
- Instale as dependências.
- Configure a instância com o .env
- Execute os testes.
- Execute o runserver.
git clone [email protected]:cosmun/schedules.git
cd schedules
virtualenv env --python=python3 # python 3.6 ou mais atual
source env/bin/activate
pip install -r requirements_dev.txt
cp contrib/env-sample .env
coverage run --source='.' manage.py test -v 2 ; coverage report --show-missing
python manage.py runserver
flake8 --config=.flake8
- Crie uma instância no heroku.
- Envie as configurações para o heroku.
- Define um SECRET_KEY segura para instância.
- Defina DEBUG=True
- Configure o serviço de email.
- Envie o código para o heroku.
heroku create minhainstancia
heroku config:set SECRET_KEY=`python contrib/secret_gen.py`
heroku config:set DEBUG=False
heroku config:set ALLOWED_HOSTS=.herokuapp.com
git push heroku master --force