Minha primeira biblioteca Django reutilizável.
Project description
django-minha-lib
Este projeto é um teste de criação de uma biblioteca Django.
Instalação
Você pode instalar a biblioteca usando pip ou poetry:
pip install django-minha-lib
ou
poetry add django-minha-lib
Configuração
Adicione django_minha_lib à lista de INSTALLED_APPS no seu settings.py:
INSTALLED_APPS = [
# ... outras apps ...
'django_minha_lib',
]
Migrações
Após instalar e configurar, rode os comandos:
python manage.py makemigrations
python manage.py migrate
Pronto! Sua biblioteca Django está instalada e pronta para uso.
Atualizando e publicando a biblioteca
Para atualizar a versão, buildar e publicar sua biblioteca, utilize os comandos abaixo:
poetry version patch # para avançar a versão (ex: 0.1.0 → 0.1.1)
poetry build
tar -tzf dist/*.tar.gz | head -20 # para ver os arquivos dentro do pacote
poetry publish
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_minha_lib-0.1.2.tar.gz.
File metadata
- Download URL: django_minha_lib-0.1.2.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.4 CPython/3.10.12 Linux/6.6.87.2-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
711432852bf261040a616390e21a763ac4995749caeffa9580960327e949f541
|
|
| MD5 |
c53d72403a2f4520ab135902386be8f8
|
|
| BLAKE2b-256 |
dedf892c4f49be1544c5065fd8089a00c69d3dd01de8910877af92d62aa59fa8
|
File details
Details for the file django_minha_lib-0.1.2-py3-none-any.whl.
File metadata
- Download URL: django_minha_lib-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.4 CPython/3.10.12 Linux/6.6.87.2-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
373f5307da6f1d232b5ee1517a1bf16b2a690f0836dc672a23b447cfbce3cb02
|
|
| MD5 |
82699328258834c37ed2e715c473f6c2
|
|
| BLAKE2b-256 |
be84ad1affd513da7edf777ed7e5111d0d3e9ee33820e02ef75c9fa1ff823ec7
|