Sugar
Various sugars and goodies for projects. They are mainly for Presslabs internal use, but can be proven usefull for any other projects.
Use as django app
To use sugar in your django app, add “pl_sugar” to your INSTALLED_APPS setting before django.contrib.admin:
INSTALLED_APPS = [
...
'pl_sugar',
'django.contrib.admin',
...
]
It provides the folowing goodies:
Admin filters with more than 5 items are dropdowns
Adds header pagination for django rest framework in
pl_sugar.rest_framework.pagination.LinkHeaderPaginationIf you install social-auth it displays the Google Login button on admin login page. Also it provides
pl_sugar.social_auth.pipeline.set_admin_permswhich sets as super admins users defined inSOCIAL_AUTH_ADMIN_EMAILS
Metadata
Release files for presslabs-sugar 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| presslabs-sugar-1.2.0.tar.gz | 4.7 kB | Without provenance | Details for presslabs-sugar-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| presslabs_sugar-1.2.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for presslabs_sugar-1.2.0-py2.py3-none-any.whl |
Total release size: 11.6 kB
Release files / presslabs-sugar-1.2.0.tar.gz
| Download URL | presslabs-sugar-1.2.0.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9853f1c8140313cde64ab343fb2d218da112abe4edc7638f85d9a22ae817d4d4
|
|
BLAKE2b-256 checksum How to use checksums |
de013ed312687efe254060e56a69d4b3393785250d9df9a0e64b0e8572525e2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / presslabs_sugar-1.2.0-py2.py3-none-any.whl
| Download URL | presslabs_sugar-1.2.0-py2.py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
2ea9c4e04a10580dcd1639ae8f162c245f9109cad1996d5a58adddf7893025b5
|
|
BLAKE2b-256 checksum How to use checksums |
98b590e7a550f0053e5ccc3b004cc7fefa4ec1414d099974e9a4f6a401ac9b5a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for presslabs-sugar 1.2.0
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.