semvec/pypi-packages huggingface dataset:
djangocms-unitegallery 0.1.0
unitegallery grid Plugin for django CMS
License: MIT

djangocms-unitegallery
======================

.. image:: https://travis-ci.org/izimobil/djangocms-unitegallery.svg?branch=master
    :target: https://travis-ci.org/izimobil/djangocms-unitegallery

.. image:: https://img.shields.io/pypi/l/djangocms-unitegallery.svg

.. image:: https://img.shields.io/pypi/pyversions/djangocms-unitegallery.svg

.. image:: https://img.shields.io/badge/django-1.7%20or%20newer-green.svg

.. image:: https://img.shields.io/badge/djangocms-3%20or%20newer-green.svg

.. image:: https://img.shields.io/pypi/dm/djangocms-unitegallery.svg


A gallery plugin for django CMS that uses the excellent
`Unite Gallery <http://unitegallery.net>`_ jQuery plugin.


Installation
------------

This plugin requires `django CMS` 3.0 or higher and `sorl-thumbnail`
12.0 or higher to work.

* Run ``pip install djangocms-unitegallery``
* Add ``'sorl.thumbnail'`` and ``'djangocms_unitegallery'`` to your ``INSTALLED_APPS``
* Run ``python manage.py migrate``

.. note::
    It's up to you to include jQuery js file in your templates, just make
    sure you include it **before** the sekizai ``{% render_block js %}``.
  

Configuration
-------------

By default djangocms-unitegallery generates thumbnails for better perfomance.
The default behavior is to generate thumbnails by resizing and cropping images
in a square of 250x250 px.

You can disable completely the thumbnail generation and leave Unite Gallery
handles images and preview, or you can change the default size of generated
thumbnails and/or wether the image ratio should be preserved or not::

    DJANGOCMS_UNITEGALLERY_CONFIG = {
        'THUMBNAIL_ENABLED': true,
        'THUMBNAIL_MAX_WIDTH': 250,
        'THUMBNAIL_MAX_HEIGHT': 250,
        'THUMBNAIL_PRESERVE_RATIO': False, 
    }

If you set ``THUMBNAIL_PRESERVE_RATIO`` to ``False``, thumbnails will be
cropped to match the configured width and height.
If you set ``THUMBNAIL_PRESERVE_RATIO`` to ``True``, thumbnails
will just be resized to match the configured max width (if image is landscape)
or height (if image is portrait).

.. note::
    Due to Unite Gallery behavior, and depending on configured options, you
    are not guaranteed to have the thumbnail size you configured in settings.
django-rest-sessions 0.2.2
Rest Session Backend For Django
License: MIT
Keywords: django,sessions,

django-rest-sessions
=======================
Rest based sessions backend for Django.

Prerequisites
-------------
This backend relies on `rest-sessions`_ for storing and managing sessions.
Npm rest-sessions needs to be running and accessible at SESSION_URL.

.. _rest-sessions: https://www.npmjs.com/package/rest-sessions

Requirements
------------
This package relies on the `requests`_ package. Make sure it is installed in your Django project:
    ``pip install requests``

.. _requests: https://github.com/kennethreitz/requests

Install
-------
Install with pip:
    ``pip install django-rest-sessions``

Configure
---------
After installing django-rest-sessions you must add a few settings to your
settings.py

* Add ``rest_sessions`` as your session engine::

    SESSION_ENGINE = 'rest_sessions'

* Add ``django.contrib.sessions.middleware.SessionMiddleware`` to
  MIDDLEWARE_CLASSES
* Add the name of the session cookie for Django's session middleware::

    SESSION_COOKIE_NAME = 'session-cookie'

* Add the path where npm rest-sessions is running::

    SESSION_URL = 'example.com/path/to/rest-sessions'

* Add the app that is used in npm rest-sessions::

    SESSION_APP = 'mywebapp'

Usage
-----
This session backend is mostly intended to be used in a microservice
architecture and thus does not handle creating sessions since npm rest-sessions
requires a user key so it would only be possible to create a session within
the microservice that takes care of the users for your application.
Because this is intended to add sessions to requests to all microservices
written in Django it is more applicable to create sessions once a user logs in
or requests a web page and use this for services handling RESTful requests that
said web page makes.

Testing
-------
To run tests the following packages are needed:

    * django

    * requests

    * requests_mock

Install them with:
    `pip install -r requirements.txt`

Run the tests with:
    `python setup.py test` or
    `python setup.py xml_test` which generates an xml report
js.uuid 1.4.7
Fanstatic packaging of node-uuid
License: MIT

js.uuid
*******

Introduction
============

This library packages `node-uuid`_ for `fanstatic`_.

.. _`fanstatic`: http://fanstatic.org
.. _`node-uuid`: https://github.com/broofa/node-uuid

This requires integration between your web framework and ``fanstatic``,
and making sure that the original resources (shipped in the ``resources``
directory in ``js.uuid``) are published to some URL.

How to use?
===========


You can import ``uuid`` from ``js.uuid`` and ``need`` it where you want
these resources to be included on a page::

  >>> from js.uuid import uuid
  >>> uuid.need()


CHANGES
=======

1.4.7 (2016-03-18)
------------------

- Initial packaging of node-uuid as a fanstatic package.