Skip to main content

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

django_minha_lib-0.1.3.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

django_minha_lib-0.1.3-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file django_minha_lib-0.1.3.tar.gz.

File metadata

  • Download URL: django_minha_lib-0.1.3.tar.gz
  • Upload date:
  • Size: 2.8 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

Hashes for django_minha_lib-0.1.3.tar.gz
Algorithm Hash digest
SHA256 88f69c8155d6ec144e17b03a94de1ba1e8bea858a349f21b0c73e89262738b4c
MD5 3483e463ca75ea2f4902cd4355156e3e
BLAKE2b-256 f3eedbf3e0b0f1e2c8671e55cd035ac095102414d665c8e366cf934d1c40cf2e

See more details on using hashes here.

File details

Details for the file django_minha_lib-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: django_minha_lib-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 5.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

Hashes for django_minha_lib-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 60111cb671313132cf6e07e13041b051e46d38ab3569070c8c5893c83aae9205
MD5 f9be3b73b886ada3f634703299b515a5
BLAKE2b-256 8436302cae5d3bd4eb1218c537c833897efc9eedfee03f564e4462d342222d16

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