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.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.load.import_module_or_none() - import a module, only raises an ImportError for sub modules.

  • 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-3.0.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

django_fluent_utils-3.0-py2.py3-none-any.whl (19.7 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: django-fluent-utils-3.0.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

File hashes

Hashes for django-fluent-utils-3.0.tar.gz
Algorithm Hash digest
SHA256 24c20a66de7040ea5becde84c6bf8e497ccfee9b47b3276ed192934ca77f695a
MD5 884791caf58f83290817c1df4b7e0c93
BLAKE2b-256 a176e27661c5112f5c1d2ff3c6fc6c7dcb8c9829859a115810c7d67bce117e35

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_fluent_utils-3.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 19.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

File hashes

Hashes for django_fluent_utils-3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 20a61ec403038f22cc3276a8041725ab44023003621481df1eb9d9e4e0662588
MD5 b764c0181649203ffdf36c776db7c143
BLAKE2b-256 598fca6916bd15c63870b16d4d65d37d3b085cfce9c035e54d3c02931c5385ed

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