Skip to main content

A collection of features used in our Django-based web applications.

Project description

django-features

A collection of fearures used in our Django-based web applications

Changelog

Installation

pip install ftw-django-features

Usage

Add desired app to INSTALLED_APPS in your Django project.

Available apps:

django_features.system_message

System Message

If you want to use django_features.system_message, your base configuration class should inherit from django_features.system_message.settings.SystemMessageConfigurationMixin.

Then call the super property:

@property
def CONSTANCE_CONFIG(self) -> dict:
    config = super().CONSTANCE_CONFIG
    return {**config, ...}

@property
def CONSTANCE_CONFIG_FIELDSETS(self) -> dict:
    config = super().CONSTANCE_CONFIG_FIELDSETS
    return {
        **config,
        ...
    }

Add the django_features.system_message.routers.system_message_router to your ROOT_URLCONF. For example:

path("api/", include(system_message_router.urls)),

Development

Installing dependencies, assuming you have poetry installed:

poetry install

Release

This package uses towncrier to manage the changelog, and to introduce new changes, a file with a concise title and a brief explanation of what the change accomplishes should be created in the changes directory, with a suffix indicating whether the change is a feature, bugfix, or other.

To make a release and publish it to PyPI, the following command can be executed:

./bin/release

This script utilizes zest.releaser and towncrier to create the release, build the wheel, and publish it to PyPI.

Before running the release command, it is necessary to configure poetry with an access token for PyPI by executing the following command and inserting the token stored in 1password:

poetry config pypi-token.pypi <token>

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

ftw_django_features-2025.1.1.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

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

ftw_django_features-2025.1.1-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

Details for the file ftw_django_features-2025.1.1.tar.gz.

File metadata

  • Download URL: ftw_django_features-2025.1.1.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.13.7 Darwin/24.5.0

File hashes

Hashes for ftw_django_features-2025.1.1.tar.gz
Algorithm Hash digest
SHA256 d081241b6dea9ee80085575fdb9c302439cbd789fb57ce8eec3d2396fa12bdd9
MD5 a478bc662b3661b685356c206416bb52
BLAKE2b-256 8965eba17318f5cb7d051ad7ed17fa2dfdc1fbc67fd758d2bb1420fcbb8dd252

See more details on using hashes here.

File details

Details for the file ftw_django_features-2025.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ftw_django_features-2025.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 da2e9f443010743a0d568a9685b0402ca5a3094130e60d0c0cc52a4637a0e035
MD5 3df0262b069c5969a2f03b7266427df0
BLAKE2b-256 71d8695f6f0437e715fda9d0a08eaab373b4aaec71063b8212bb1d2ea6584a8d

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