Various sugars and goodies for projects.
Project description
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.LinkHeaderPagination
If you install social-auth it displays the Google Login button on admin login page. Also it provides
pl_sugar.social_auth.pipeline.set_admin_perms
which sets as super admins users defined inSOCIAL_AUTH_ADMIN_EMAILS
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file presslabs-sugar-1.2.0.tar.gz
.
File metadata
- Download URL: presslabs-sugar-1.2.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9853f1c8140313cde64ab343fb2d218da112abe4edc7638f85d9a22ae817d4d4 |
|
MD5 | a85f6fc46dc6f950f2769f145825c622 |
|
BLAKE2b-256 | de013ed312687efe254060e56a69d4b3393785250d9df9a0e64b0e8572525e2d |
File details
Details for the file presslabs_sugar-1.2.0-py2.py3-none-any.whl
.
File metadata
- Download URL: presslabs_sugar-1.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ea9c4e04a10580dcd1639ae8f162c245f9109cad1996d5a58adddf7893025b5 |
|
MD5 | 0c287637893bb58000a82779337481fd |
|
BLAKE2b-256 | 98b590e7a550f0053e5ccc3b004cc7fefa4ec1414d099974e9a4f6a401ac9b5a |