rodrigoSyscop / eventex

Welcome To The Django class project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Eventex

Sistema de Eventos

Build Status Code Health

Como desenvolver?

  1. Clone o repositório?
  2. Crie um virtualenv com Python 3.6
  3. Ative o virtualenv
  4. Instale as dependências
  5. Configure a instância com .env
  6. 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

Como fazer deploy?

  1. Crie uma instância no heroku.
  2. Envie as configurações para o heroku.
  3. Defina uma SECRET_KEY segura para a instância.
  4. Defina DEBUG=False
  5. Configure o serviço de email.
  6. 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))

About

Welcome To The Django class project


Languages

Language:Python 33.0%Language:CSS 30.9%Language:HTML 30.1%Language:JavaScript 6.0%