Skip to content

Commit

Permalink
Instala app django-extensions
Browse files Browse the repository at this point in the history
close #35
  • Loading branch information
renzo authored and renzon committed Sep 11, 2024
1 parent 9bc08da commit 14aa6c7
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 2 deletions.
16 changes: 16 additions & 0 deletions backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,22 @@ Tamanho de linha pode ter até 120 caracteres. Para ver o relatório do linter r
flake8 .
```

Para rodar os testes automáticos execute:

```bash
pytest devpro
```

# Shell do DJango

Essa template vem com [Django Extensions](https://django-extensions.readthedocs.io/) instalado. Então se recomenda usar
Para rodar sessão de shell interativa

```bash
python manage.py shell_plus --print-sql
```


# Usuário padrão

Nesse projeto o usuário foi customizado. Ele não tem username nem last_name como o usuário padrão do Django.
Expand Down
2 changes: 1 addition & 1 deletion backend/devpro/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django_extensions',

]

Expand Down Expand Up @@ -122,7 +123,6 @@
if DEBUG:
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"


AWS_STORAGE_BUCKET_NAME = config('AWS_STORAGE_BUCKET_NAME', default='').strip()

if AWS_STORAGE_BUCKET_NAME == '':
Expand Down
16 changes: 15 additions & 1 deletion backend/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ django-min-custom-user = "^0.2.0"
django-storages = {extras = ["s3"], version = "^1.14.4"}
pillow = "^10.4.0"
devpro-s3-storages = "^0.1.0"
django-extensions = "^3.2.3"


[tool.poetry.group.dev]
Expand Down

0 comments on commit 14aa6c7

Please sign in to comment.