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

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

Instalação

pip install django-nexum-base

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 makemigrations

e em seguida:

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.3.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.3-py3-none-any.whl (24.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_nexum_base-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 075cffee815a36e76779b5f1e2af49924102e797659a083e6dc7234f1925900e
MD5 373526228ee35b91216978747b45b9e9
BLAKE2b-256 487ef710134bf50f7c83259aa9a343bc0984c4a445af90f6a314c8054423190d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_nexum_base-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 08ed39a691942b16eb3baca8d83f3bf26492f1c2803629c1996717cfe7462d88
MD5 ffafa823fbfc52a8d7f99b62a69c93e0
BLAKE2b-256 7ff346f3e87b340a549db241ac1603d654825a5b9e546b27e0a1df95e68bc176

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