Skip to main content

Back-end Boilerplate Modular

Project description

Django Nexum Base

Build Status License: MIT PyPI Python Version

Descrição

Boilerplate modular para construção de sites Standard, feito em Django e Django REST Framework. Permite criar projetos robustos e escaláveis rapidamente, com autenticação JWT, 2FA, permissões, API RESTful e integração de email.

Ambiente virtual

Antes de instalar, crie e ative um ambiente virtual Python:

python -m venv venv
source venv/bin/activate  # Linux/macOS
venv\Scripts\activate     # Windows

Instalação

pip install django-nexum-base

Configuração Inicial do Django

Se ainda não possui um projeto Django, crie um novo projeto e um app:

django-admin startproject project_name
cd meu_projeto
python manage.py startapp app_name

Setup

Adicione base, rest_framework e django_filters ao seu INSTALLED_APPS no settings.py:

INSTALLED_APPS = [
    ...
    'rest_framework',
    'django_filters',
    'base',
]

Configure o usuário customizado:

AUTH_USER_MODEL = 'base.BaseCustomUser'

Rode as migrações:

python manage.py migrate

Exemplo de Uso:

Criando um produto

from base.models import BaseProduct

produto = BaseProduct.objects.create( name="Produto Exemplo", price=99.99, stock=100 )


Envie email (exemplo):

```python
from base.utils import send_otp_email
send_otp_email(user)

Documentação

Consulte a documentação completa dos endpoints, modelos e exemplos de uso no repositório ou no diretório docs/.

Licença

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_nexum_base-0.0.5.tar.gz (20.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_nexum_base-0.0.5-py3-none-any.whl (24.5 kB view details)

Uploaded Python 3

File details

Details for the file django_nexum_base-0.0.5.tar.gz.

File metadata

  • Download URL: django_nexum_base-0.0.5.tar.gz
  • Upload date:
  • Size: 20.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for django_nexum_base-0.0.5.tar.gz
Algorithm Hash digest
SHA256 eff9d61b06489be5fdb69450ae0454cd898414b8037566b32c695eb72abb675d
MD5 467a1b24b5aeeb6570b6be0612924685
BLAKE2b-256 f100aa02ca6e2675b3ffb5319a4aaf2eda56d1c04ef9b3d9d76f5f4c2d259222

See more details on using hashes here.

File details

Details for the file django_nexum_base-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for django_nexum_base-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 db5f9808084de06c3c69209078c5840e05685916dd614ef27ac42105becd5481
MD5 a0057fad645bc6dc6a2db2515cc8efde
BLAKE2b-256 87f6a3d0d029dad56b08a10da81e9abccc2773ad93a670504b7fb9c15ff02cb6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page