Sistema de Eventos
- Clone o repositório?
- Crie um virtualenv com Python 3.6
- Ative o virtualenv
- Instale as dependências
- Configure a instância com .env
- Execute os testes
git clone git@github.com:rodrigoSyscop:/eventex.git wttd
cd wttd
python -m venv .wttd
source .wttd/bin/activate
pip install -r requirements-dev.txt
cp contrib/env-sample .env
python manage.py test
- Crie uma instância no heroku.
- Envie as configurações para o heroku.
- Defina uma SECRET_KEY segura para a instância.
- Defina DEBUG=False
- Configure o serviço de email.
- Envie seu código para o heroku.
heroku create minhainstancia
heroku config:push
heroku config:set SECRET_KEY=`python contrib/secret_gen.py`
heroku config:set DEBUG=False
# configure o email
git push heroku master --force #!/usr/bin/env python
"""
Django SECRET_KEY generator.
"""
from django.utils.crypto import get_random_string
chars = 'abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)'
print(get_random_string(50, chars))