Django Base¶
Documentation¶
The full documentation is at http://django-base.readthedocs.io.
Live demo @ http://django-base.104.236.104.21.xip.io
Quickstart¶
- Clone o repositório.
- Crie um virutalenv com o Python 3.5
- Ative o Virtualenv.
- Instale as dependencias.
5. Configure as variaveis sensiveis do projeto com o .env 5. Configure as variaveis referentes ao dokku no arquivo deploy_utlis/.env 6. Migre seus modelos para o Banco de Dados 7. Roda o collectstatic para configurar arquivos staticos 8. Execute os testes.
Digite no terminal:
git clone https://github.com/tyagow/django-base.git Nome-Do-Projeto
cd Nome-Do-Projeto
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cp contrib/env-sample .env
cp contrib/env-d0kku-sample deploy_utlis/.env
python manage.py collectstatic
python manage.py migrate
python manage.py test
python manage.py runserver
Como fazer o Deploy?¶
Features¶
- Django 1.10.5
- Bootstrap 4 alpha 6
- JQuery 3.1.1
- Python Decouple
- DJ Static (serving static files locally)
- Dj Database URL
- Django test without migrations
- Django Crispy Forms
- Django bootstrap3
- Social User Login App* (facebook e twitter)
- Django Extensions
- Dokku pre configured
- Multi languange i18n
- Coverage
Need additional configuration
Translation¶
Running Tests¶
Does the code actually work?
source .venv/bin/activate
(myenv) $ python manage.py test
Social Auth¶