Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rg3915/django-experience
Tutorial Django Experience 2022
https://github.com/rg3915/django-experience
django drf python
Last synced: about 17 hours ago
JSON representation
Tutorial Django Experience 2022
- Host: GitHub
- URL: https://github.com/rg3915/django-experience
- Owner: rg3915
- Created: 2021-12-11T02:37:06.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-14T23:43:03.000Z (7 months ago)
- Last Synced: 2024-04-16T01:27:07.950Z (7 months ago)
- Topics: django, drf, python
- Language: Python
- Homepage: https://rg3915.github.io/django-experience/
- Size: 6.41 MB
- Stars: 198
- Watchers: 6
- Forks: 6
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# django-experience
Tutorial Django Experience 2022
## Este projeto foi feito com:
* [Python 3.10.4](https://www.python.org/)
* [Django 4.0.4](https://www.djangoproject.com/)
* [Django Rest Framework 3.12.4](https://www.django-rest-framework.org/)
* [Bootstrap 4.0](https://getbootstrap.com/)
* [htmx 1.6.1](https://htmx.org/)## Como rodar o projeto?
* 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-experience.git
cd django-experience
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python contrib/env_gen.py
python manage.py migrate
python manage.py createsuperuser --username="admin" --email=""
```## Passo a passo
Leia [https://rg3915.github.io/django-experience/](https://rg3915.github.io/django-experience/) ou
Veja a pasta de [passo-a-passo](https://github.com/rg3915/django-experience/tree/main/passo-a-passo).
## Features da aplicação
* Renderização de templates na app `todo`.
* API REST feita com Django puro na app `video`.
* Django REST framework nas apps `example`, `hotel`, `movie` e `school`.
* [Salvando dados extra](https://github.com/rg3915/django-experience/blob/main/passo-a-passo/08_drf_salvando_dados_extra.md) com [perform_create](https://www.django-rest-framework.org/tutorial/4-authentication-and-permissions/#associating-snippets-with-users)
* **Dica:** [Reescrevendo o Admin do User](https://github.com/rg3915/django-experience/blob/main/passo-a-passo/10_reescrevendo_admin_user.md)
* [Editando mensagens de erro no DRF](https://github.com/rg3915/django-experience/blob/main/passo-a-passo/12_drf_editando_mensagens_erro.md)
* **Dica:** [Adicionando Grupos e Permissões](https://github.com/rg3915/django-experience/blob/main/passo-a-passo/14_grupos_permissoes.md)