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 | |
|---|---|---|---|
| presslabs-sugar-1.2.0.tar.gz | 4.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| presslabs_sugar-1.2.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
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 |