Skip to main content

A handy collection of reusable Django UI components, allowing me to share and integrate elements efficiently across various projects.

Project description

django-my-lib 🚀

PyPI

This project is a test for creating a Django library. 🧩

Installation 📦

You can install the library using pip or poetry:

pip install django-my-lib

or

poetry add django-my-lib

Configuration ⚙️

Add django_my_lib to the INSTALLED_APPS list in your settings.py:

INSTALLED_APPS = [
    # ... other apps ...
    'django_my_lib',
]

Migrations 🗄️

After installing and configuring, run the following commands:

python manage.py makemigrations
python manage.py migrate

🎉 Done! Your Django library is installed and ready to use.

Running locally as a developer 🖥️

To run the Django project locally during development, follow the steps below:

git clone https://github.com/GustavoRizzo/django-my-lib.git
cd django-my-lib
poetry install
cd demo_project
pip install -e ..
poetry run ./manage.py runserver

Tests 🧪

To run the tests, use the command below inside the demo_project directory:

poetry run ./manage.py test

Updating and publishing the library 🚢

To update the version, build, and publish your library, use the commands below:

poetry version patch  # to bump the version (e.g.: 0.1.0 → 0.1.1)
poetry build
tar -tzf dist/*.tar.gz | head -20  # to see the files inside the package
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_my_lib-0.1.5.tar.gz (3.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_my_lib-0.1.5-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file django_my_lib-0.1.5.tar.gz.

File metadata

  • Download URL: django_my_lib-0.1.5.tar.gz
  • Upload date:
  • Size: 3.6 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_my_lib-0.1.5.tar.gz
Algorithm Hash digest
SHA256 a3d037c96c9b9b8b6e14360a93135efb7557136d4bb32b11df69f59131b7e843
MD5 09290173fb585a7dfa2e49b5c3b21589
BLAKE2b-256 c2a08288a4ea9f2f4c21c3567cc9b70b1b28145603ea2b9b8084eddaf35a2375

See more details on using hashes here.

File details

Details for the file django_my_lib-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: django_my_lib-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 5.6 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_my_lib-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 396b584bfd5ca8074565c8f0a87aa45d3923106444129ae90daefc8cb150258a
MD5 308f7124fe82ad224b66497042d0df76
BLAKE2b-256 565cb8c6356f46c4192380ea1873ac133d2a75fd020e75bc759e86b2e40ce9df

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