Radically simplified static file serving for Python web apps
With a couple of lines of config WhiteNoise allows your web app to serve its own
static files, making it a self-contained unit that can be deployed anywhere
without relying on nginx, Amazon S3 or any other external service. (Especially
useful on Heroku, OpenShift and other PaaS providers.)
It's designed to work nicely with a CDN for high-traffic sites so you don't have
to sacrifice performance to benefit from simplicity.
WhiteNoise works with any WSGI-compatible app but has some special auto-
configuration features for Django.
- While I'm here, add NO_ARCH
WWW: http://whitenoise.evans.io/
PR: 239107
Submitted by: Alexander Sieg <alex@xanderio.de>
Replaces things like get_absolute_url with a .urls attribute that can reference
other URLs and build sensible trees of things, and can then be accessed using
instance.urls.name.
WWW: https://github.com/andrewgodwin/urlman
PR: 239103
Submitted by: Alexander Sieg <alex@xanderio.de>
rules is a tiny but powerful app providing object-level permissions to Django,
without requiring a database. At its core, it is a generic framework for
building rule-based systems, similar to decision trees. It can also be used as a
standalone library in other contexts and frameworks.
WWW: https://github.com/dfunckt/django-rules
PR: 239102
Submitted by: Alexander Sieg <alex@xanderio.de>
inlinestyler is an easy way to locally inline CSS into an HTML email message.
Styling HTML email is a black art. CSS works, but only when it's been placed
inline on the individual elements (and event then, not always) - which makes
development frustrating, and iteration slow.
The general solution is to use an inlining service, which takes a message with
the CSS placed externally, and rewrites it so that all CSS is applied to the
individual elements. The most widely used of these services - and as far as I
can tell, the one that powers CampaignMonitor - is Premailer. It's a great
service, and the guys behind it put a lot of work into keeping it up to date
with the most recent discoveries in what works and what doesn't.
inlinestyler takes (most) of the functionality of Premailer, and makes it
available locally, accessible without having call a remote service.
WWW: https://github.com/dlanger/inlinestyler
- While I'm here:
- Add LICENSE_FILE
- Add NO_ARCH
PR: 239063
Submitted by: Alexander Sieg <alex@xanderio.de>
django-libsass builds on libsass-python to make @import paths aware of Django's
staticfiles mechanism, and provides a filter module for django-compressor which
uses the libsass-python API directly, avoiding the overheads of calling an
external executable to do the compilation.
WWW: https://github.com/torchbox/django-libsass
- While I'm here, add NO_ARCH
PR: 239061
Submitted by: Alexander Sieg <alex@xanderio.de>
This is yet another way to store multi-lingual content in Django. In contrast to
other options like django-hvad, django-modeltranslation or django-parler it does
not require additonal database tables and you can reconfigure the available
languages without any changes to the database schema. In constrast to nece, it
is not specific to PostgreSQL.
WWW: https://github.com/raphaelm/django-i18nfield
- While I'm here, add NO_ARCH
PR: 239060
Submitted by: Alexander Sieg <alex@xanderio.de>
django-hierarkey -- Hierarchical key-value store
This package allows you to attach a key-value store to a model, e.g. to store
preferences of an user or a customer. The package supports arbitrary datatypes,
defaults and model hierarchies, i.e. you can define a different model instance
as your instance's parent and the values of the parent instance will be used as
default values for the child instances.
This approach has been in use in pretix for quite a while, so it has been tested
in production.
This project is maintained by Raphael Michel <mail@raphaelmichel.de>. See the
AUTHORS file for a list of all the awesome folks who contributed to this
project.
WWW: https://github.com/raphaelm/django-hierarkey
- While I'm here, add NO_ARCH
PR: 239059
Submitted by: Alexander Sieg <alex@xanderio.de>
This is a fork of django-formset-js that adds support for reordering and nested
formsets.
A wrapper for a JavaScript formset helper.
WWW: https://github.com/pretix/django-formset-js
- While I'm here:
- Add LICENSE_FILE
- Fix USES=python
PR: 239050
Submitted by: Alexander Sieg <alex@xanderio.de>
jQuery, bundled up so apps can depend upon it
WWW: https://pypi.org/project/django-jquery-js/
- While I'm here:
- Fix LICENSE
- Add LICENSE_FILE
PR: 239049
Submitted by: Alexander Sieg <alex@xanderio.de>
Python package for Django removing the need to call
super().get_context_data(**kwargs) in nearly every Django view.
WWW: https://github.com/rixx/django-context-decorator
- While I'm here:
- Fix USES=python
- Update WWW
PR: 239048
Submitted by: Alexander Sieg <alex@xanderio.de>
Active Storage makes it simple to upload and reference files in cloud services
like Amazon S3, Google Cloud Storage, or Microsoft Azure Storage, and attach
those files to Active Records. Supports having one main service and mirrors in
other services for redundancy. It also provides a disk service for testing or
local deployments, but the focus is on cloud storage.
Files can be uploaded from the server to the cloud or directly from the client
to the cloud.
Image files can furthermore be transformed using on-demand variants for quality,
aspect ratio, size, or any other MiniMagick supported transformation.
WWW: https://rubyonrails.org/