Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Django-Userpref

django-userpref provides a abstract and reuseable framework for userspecific settings

This includes:

  • Abstract UserPref Class

  • Admin interface

  • Templates for an userspecific settings page

Basic usage

Just define a abstract model that can be used in the applications. In you app you should define something like:

from userpref.models import Userpref

class MyappSettings(Userpref):
    special_setting = models.BooleanField(default=False, verbose_name='Make me a superhero')
    another_field = models.CharField(max_length=100, default="<unset>")

    class Meta:
        verbose_name = "My Custom Setting for app Myapp"

In your application or template you can access the settings over the users attributes

{% if request.user.myappsettings.special_settings %}
    You are special man!
{% endif %}

Metadata

Release files for django-userpref 0.1.0a5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-userpref 0.1.0a5
File Size Uploaded Provenance Actions
django-userpref-0.1.0a5.tar.gz 4.2 kB Without provenance Details for django-userpref-0.1.0a5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-userpref 0.1.0a5
File Interpreter ABI Platform Actions
django_userpref-0.1.0a5-py2.py3-none-any.whl Python 3, Python 2 none any Details for django_userpref-0.1.0a5-py2.py3-none-any.whl

Total release size: 10.1 kB

Release files / django-userpref-0.1.0a5.tar.gz

Download URL django-userpref-0.1.0a5.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
3a1f293dc2ddcbbe132933e638b4aeb5d0ad6f13a0e1502f074e68ab3e676bba
BLAKE2b-256 checksum
How to use checksums
1e23976286fd7c339c9940b1e010e49389499581a62de34c5dd10c35ea787136
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django_userpref-0.1.0a5-py2.py3-none-any.whl

Download URL django_userpref-0.1.0a5-py2.py3-none-any.whl
Size 5.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
6e1cdd414679a294466f5bc7695e1901ab08d5f857dbb43cc54050e933939d16
BLAKE2b-256 checksum
How to use checksums
d0870730ac9110079f607c4d5a92d28c2cdd99964bd4708448c7ba661ec73c05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-userpref 0.1.0a5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page