Skip to main content

Internal utilities for code sharing between django-fluent modules

Project description

This module is mainly used internally between other django-fluent apps. For the whole list of apps, see http://django-fluent.org/

This module provides:

  • Stubs to make integration with third-party apps optional

  • Django compatibility code

  • Shared code for fluent apps (“Don’t repeat yourself”)

Stub features

fluent_utils.softdeps.any_imagefield

Support django-any-imagefield when it’s available. This provides an improved ImageField and FileField.

It supports various third party media libraries, allowing django-fluent to use the media library of your choice.

fluent_utils.softdeps.any_urlfield

The AnyUrlField enhances the standard Django URLField, when django-any-urlfield is installed.

fluent_utils.softdeps.comments

Seemingly switch between django_comments or the older django.contrib.comments.

fluent_utils.softdeps.fluent_pages

Stub the CurrentPageMixin, app_reverse() and mixed_reverse() when django-fluent-pages is not installed. This allows apps to revert to standard urls.py URLs when they can’t provide URLs via a custom page type for the fluent-pages tree.

fluent_utils.softdeps.taggit

Optional support for tagging. It supports various applications:

django-fluent automatically uses one of these third-party apps when it’s found in INSTALLED_APPS.

Internal API’s

These API’s are available for other django-fluent-.. modules:

  • fluent_utils.ajax.JsonResponse - a JsonResponse before Django 1.8 provided that.

  • fluent_utils.django_compat - imports for various features that moved or changed between Django versions.

  • fluent_utils.dry.admin.MultiSiteAdminMixin - mixin for the admin to filter on the parent_site field.

  • fluent_utils.dry.fields.HideChoicesCharField - avoid expanding choices in Django migrations.

  • fluent_utils.dry.models.get_db_table() - regenerate the Django DB table name with an optional prefix.

  • fluent_utils.load.import_apps_submodule() - import a module in every application found in INSTALLED_APPS.

  • fluent_utils.load.import_class() - import a class via a Python path.

  • fluent_utils.load.import_settings_class() - import a class via a named setting.

  • fluent_utils.softdeps.* - various soft dependencies, see above

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-fluent-utils-1.3.tar.gz (17.4 kB view details)

Uploaded Source

Built Distribution

django_fluent_utils-1.3-py2.py3-none-any.whl (20.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-fluent-utils-1.3.tar.gz.

File metadata

File hashes

Hashes for django-fluent-utils-1.3.tar.gz
Algorithm Hash digest
SHA256 42b4d5e0d4a6dad1b0ce6da2420d099016a8d50ae02a7ab9c68336b8ba17c6d4
MD5 4217761f760dcc05e0f2379060c9fc04
BLAKE2b-256 3edb8f9c441857ced0cf157f4cb7b075ffd8abaeb361704d5ab90398cd0ae41c

See more details on using hashes here.

File details

Details for the file django_fluent_utils-1.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_fluent_utils-1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c8aad95e8866f1c6132b38357e85bd0a0705a39c09aee4d0481c6f52a484eba9
MD5 e4584672f91cece163d8e359ad20ff27
BLAKE2b-256 de32ed31ae3052cc1438f2e0f24fc64dea754d5bfc5ab71902689019f344f56f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page