Example using FBV and CBV in Django.
- Clone esse repositório.
- Crie um virtualenv com Python 3.
- Ative o virtualenv.
- Instale as dependências.
- Rode as migrações.
git clone https://github.com/rg3915/django-fbv-cbv-example.git
cd django-fbv-cbv-example
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python manage.py migrate
Para inserir dados no banco digite
python manage.py shell < create_data.py
https://godjango.com/blog/5-reasons-to-use-class-based-views/
https://docs.djangoproject.com/en/2.0/ref/class-based-views/flattened-index/
https://docs.djangoproject.com/en/2.0/ref/class-based-views/
https://tutorial.djangogirls.org/pt/django_forms/
https://godjango.com/15-class-based-views-part-1-templateview-and-redirectview/
https://github.com/rayed/django_crud/blob/master/books_fbv/views.py
https://godjango.com/143-django-111-djangocontribauth-class-based-views-part-1/