semvec/pypi-packages huggingface dataset:
django-switch-templatetag 2.0.4
Simple switch tag for Django templates.
License: BSD

django-switch-templatetag
=========================

A simple "switch" statement for Django templates.

Installation
------------

 * Install to PYTHONPATH, etc.

Then either:

 * Add ``switch_templatetag`` to ``settings.INSTALLED_APPS`` and then use::

     {% load switch_templatetag %}

   ... in your templates.

Or:

 * Add ``switch_templatetag.templatetags.switch`` to your
   ``BUILTINS`` entry in ``settings.TEMPLATES`` (Django 1.9)

Or:

 * Add to builtins (< Django 1.9) with in some ``models.py``::

     from django.template.base import add_to_builtins
     add_to_builtins('switch_templatetag.templatetags.switch'
django-filebased-email-backend-ng 2.0.2
A better 'file' email backend for Django
License: BSD

django-filebased-email-backend-ng
=================================

Like ``django.core.mail.backends.filebased`` but writes out attachments, HTML
alternatives, etc.

Useful for debugging/testing HTML emails, locally etc.

Installation
------------

 * Install to your PYTHONPATH

 * Set `settings.EMAIL_BACKEND` to
   `django_filebased_email_backend_ng.backend.EmailBackend`.

 * Check `settings.EMAIL_FILE_PATH`.
django-dumpslow 2.0.2
Django application to log and summarize slow requests
License: BSD

From: http://chris-lamb.co.uk/projects/django-dumpslow/

django-dumpslow is a reusable Django application that logs requests that take a
long time to execute and provides an tool to summarise the resulting data.

Modelled on mysqldumpslow, django-dumpslow is intended as a tool to determine
which parts of a project might benefit most from optimisation and to provide
valuable empirical data.

The tool groups requests that are similar by exploiting Django's ability to
reverse URLs - requests that that use the same view should not counted
distinctly. Views can then be grouped by the total accumulated time spent by
that view or simply by their raw frequency in the logs.

Additionally, if the log entries contain timestamps then django-dumpslow can
limit queries by a user-defined interval. This can be useful for generating
regular reports of slow pages, perhaps by regularly emailing them to a
development list.

Data is stored in Redis to allow easy collation of data from multiple front-end
servers (django-dumpslow requires the Redis Python client library).

An example output is:

  $ ./manage.py dumpslow
  View                                Accumulated time
  =====================================================
  example.views.slow                             92.88
  /unknown (unreversible url)                    16.84

django-dumpslow ships with an example project that demonstrates its
functionality.

Installation
------------

1. Get Dedis working in django, it's required. You'll need a redis server
   running and REDIS_HOST and REDIS_PORT set in settings.py

2. Add the following to INSTALLED_APPS in settings.py::
  
     'django_dumpslow'

3. Add the following to MIDDLEWARE_CLASSES in settings.py::

    'django_dumpslow.middleware.LogLongRequestMiddleware'

License
-------

django-dumpslow is released under the BSD license.
django-collapse-whitespace-templatetag 1.0.2
Simple template tag for Django to collapse whitespace
License: BSD

django-collapse-whitespace-templatetag
======================================

A simple whitespace-collapsing template tag for Django - useful for formatting
plain text emails or when whitespace actually matters.

Installation
------------

 * Install to PYTHONPATH, etc.

Then either:

 * Add ``collapse_whitespace_templatetag`` to ``settings.INSTALLED_APPS`` and
   then use::

     {% load collapse_whitespace_templatetag %}

   ... in your templates.

Or:

 * Add ``collapse_whitespace_templatetag.templatetags.collapse_whitespace`` to
   your ``BUILTINS`` entry in ``settings.TEMPLATES`` (Django 1.9)

Or:

 * Add to builtins (< Django 1.9) with in some ``models.py``::

     from django.template.base import add_to_builtins
     add_to_builtins('collapse_whitespace_templatetag.templatetags.collapse_whitespace'