django-qwert is a trivia snippet collection of Django which used in Kawaz
Install
pip install django-qwert
Features
Http403 exception
Like Http404 exception. You can raise Http403 exception and HttpResponseForbidden will be responsed
User based exception
Super user can see Django technical exception page even when DEBUG=False
Global request
Developpers can access request instance duaring request process with thread local mechanisms
with_request decorator
To enable handling request instance in form, convert form class and classbased generic view class. It is useful to determine the author of the object in method of form.
Useful templatetags and some extra builtin templatetags
expr (extra builtin)
calculate python expression in template
evaluate
evaluate django template in string
truncateletters (extra builtin)
like truncatewords, this truncate letters. Useful to use the language which does not have space for delimiter (like Japanese, Chinese …etc)
markdown
enhanced markdown filter which can care about the markdown extensions. markdown is required to use this templatetag.
urlize_html
urlize filter for HTML string. BeautifulSoup is required to use this templatetag
Enhanced override_settings
Similar with Django 1.4 override_settings but it will recall syncdb command when new app is appended to INSTALLED_APPS. And with_apps and without_apps decorator/context manager is added.
Automatically test user is created in syncdb command
Settings
- AUTO_CREATE_TESTUSER
To disable automatically creating test user in syncdb command, set False to this setting. Default: True
- TESTUSER_USERNAME
An username of test user. Default: 'admin'
- TESTUSER_EMAIL
An email address of test user. Default: "%s@test.com" % TESTUSER_USERNAME
- TESTUSER_PASSWORD
A password of test user. Default: 'password'
- ENABLE_EXTRA_BUILTINS
To disable adding extra templatetags to buitlin, set False.
Metadata
Release files for django-qwert 0.2.2
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 |
|---|---|---|---|---|
| django-qwert-0.2.2.tar.gz | 26.3 kB | Without provenance | Details for django-qwert-0.2.2.tar.gz |
Release files / django-qwert-0.2.2.tar.gz
| Download URL | django-qwert-0.2.2.tar.gz |
|---|---|
| Size | 26.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c1002916fba727352ab979d15915ff2f5452791c246f392e107b92b858ad2426
|
|
BLAKE2b-256 checksum How to use checksums |
0fd269664f01c17144b7c12b62acb53af0bd2d72a231ee033e80d47fa9aecec5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-qwert 0.2.2
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.