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 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.4.tar.gz (20.6 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.4-py3-none-any.whl (24.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_nexum_base-0.0.4.tar.gz
  • Upload date:
  • Size: 20.6 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.4.tar.gz
Algorithm Hash digest
SHA256 d21451ea607e48d94efb82c149fd111e6f3f0ccec7a901da13b80c0ffd57e26f
MD5 42c1d4234fd0817c5d8b67c45fa87548
BLAKE2b-256 1d7e7bbe2fe249ea494c1aafa88dabb4b6f0ce98b524561cbfebe6d8f506e756

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_nexum_base-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7ae377e7b2687e2a2ad1cb029babe0ab4c6346b7a2d6223db342fae48684755a
MD5 044533b20e841acbcf7ae8c6349ebd39
BLAKE2b-256 3f71e0c8c5fb6bb4a869c83d31678fea1a6f346bbaa9b818a70aaba45471ecb4

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