All Projects → django-cms → Djangocms Picture

django-cms / Djangocms Picture

Licence: other
django CMS Picture is a plugin for django CMS that allows you to add images on your site.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Djangocms Picture

Djangocms Admin Style
django CMS Admin Style is a Django Theme tailored to the needs of django CMS.
Stars: ✭ 282 (+662.16%)
Mutual labels:  cms, django, addon
Djangocms Text Ckeditor
Text Plugin for django CMS using CKEditor 4
Stars: ✭ 126 (+240.54%)
Mutual labels:  cms, django, addon
Django Filer
File and Image Management Application for django
Stars: ✭ 1,384 (+3640.54%)
Mutual labels:  cms, django, addon
Djangocms Googlemap
django CMS Google Map is a set of plugins for django CMS that allow you to implement Google Map into your website.
Stars: ✭ 35 (-5.41%)
Mutual labels:  cms, django, addon
Mezzanine Api
RESTful web API for Mezzanine CMS
Stars: ✭ 84 (+127.03%)
Mutual labels:  cms, django
Django Arctic
Django Arctic is a framework that simplifies the creation of custom content management systems.
Stars: ✭ 68 (+83.78%)
Mutual labels:  cms, django
Wagtail
A Django content management system focused on flexibility and user experience
Stars: ✭ 11,387 (+30675.68%)
Mutual labels:  cms, django
Jbt blog
一个基于Django2.0+Python3.6的博客/A simple blog based on python3.6 and Django2.0.
Stars: ✭ 137 (+270.27%)
Mutual labels:  cms, django
Ezlog
Easy blog system powered by django
Stars: ✭ 34 (-8.11%)
Mutual labels:  cms, django
Cms
Club Management System of amFOSS, powered by CMS
Stars: ✭ 263 (+610.81%)
Mutual labels:  cms, django
Mediacms
MediaCMS is a modern, fully featured open source video and media CMS, written in Python/Django and React, featuring a REST API.
Stars: ✭ 313 (+745.95%)
Mutual labels:  cms, django
Coderedcms
A content management system for marketing websites based on Django and Wagtail.
Stars: ✭ 386 (+943.24%)
Mutual labels:  cms, django
Django Cms
The easy-to-use and developer-friendly enterprise CMS powered by Django
Stars: ✭ 8,522 (+22932.43%)
Mutual labels:  cms, django
Django Minicms
Django 开发简易的内容管理系统
Stars: ✭ 56 (+51.35%)
Mutual labels:  cms, django
Django Page Cms
Official Django page CMS git repository
Stars: ✭ 277 (+648.65%)
Mutual labels:  cms, django
Puput
A Django blog app implemented in Wagtail
Stars: ✭ 450 (+1116.22%)
Mutual labels:  cms, django
Django Fiber
Django Fiber - a simple, user-friendly CMS for all your Django projects
Stars: ✭ 653 (+1664.86%)
Mutual labels:  cms, django
Django Modeltranslation
Translates Django models using a registration approach.
Stars: ✭ 977 (+2540.54%)
Mutual labels:  django
Django Crm
Open Source Python CRM based on Django
Stars: ✭ 981 (+2551.35%)
Mutual labels:  django
Pontoon
Mozilla's Localization Platform
Stars: ✭ 976 (+2537.84%)
Mutual labels:  django

================== django CMS Picture

|pypi| |build| |coverage|

django CMS Picture is a plugin for django CMS <http://django-cms.org>_ that allows you to add images on your site.

This addon is compatible with Divio Cloud <http://divio.com>_ and is also available on the django CMS Marketplace <https://marketplace.django-cms.org/en/addons/browse/djangocms-picture/>_ for easy installation.

.. image:: preview.gif

Contributing

This is a an open-source project. We'll be delighted to receive your feedback in the form of issues and pull requests. Before submitting your pull request, please review our contribution guidelines <http://docs.django-cms.org/en/latest/contributing/index.html>_.

We're grateful to all contributors who have helped create and maintain this package. Contributors are listed at the contributors <https://github.com/divio/djangocms-picture/graphs/contributors>_ section.

One of the easiest contributions you can make is helping to translate this addon on Transifex <https://www.transifex.com/projects/p/djangocms-picture/>_.

Documentation

See REQUIREMENTS in the setup.py <https://github.com/divio/djangocms-picture/blob/master/setup.py>_ file for additional dependencies:

|python| |django| |djangocms|

  • Django Filer 1.7 or higher

Make sure django-filer <http://django-filer.readthedocs.io/en/latest/installation.html>_ is installed and configured appropriately.

Installation

For a manual install:

  • run pip install djangocms-picture
  • add djangocms_picture to your INSTALLED_APPS
  • run python manage.py migrate djangocms_picture

Configuration

Note that the provided templates are very minimal by design. You are encouraged to adapt and override them to your project's requirements.

This addon provides a default template for all instances. You can provide additional template choices by adding a DJANGOCMS_PICTURE_TEMPLATES setting::

DJANGOCMS_PICTURE_TEMPLATES = [
    ('background', _('Background image')),
]

You'll need to create the background folder inside templates/djangocms_picture/ otherwise you will get a template does not exist error. You can do this by copying the default folder inside that directory and renaming it to background.

Another setting is DJANGOCMS_PICTURE_NESTING, which allows you to render an image as the background image of a container that also contains other content (text, icons and so on). ::

DJANGOCMS_PICTURE_NESTING = True

will enable this (the default is False). When set to True, you'll be able to place additional plugins inside the picture plugin.

You can override alignment styles with DJANGOCMS_PICTURE_ALIGN, for example::

DJANGOCMS_PICTURE_ALIGN = [
    ('top', _('Top Aligned')),
]

This will generate a class prefixed with align-. The example above would produce a class="align-top". Adding a class key to the image attributes automatically merges the alignment with the attribute class.

You can enable responsive images technique by settingDJANGOCMS_PICTURE_RESPONSIVE_IMAGES to True. In this case uploaded images will create thumbnails of different sizes according to DJANGOCMS_PICTURE_RESPONSIVE_IMAGES_VIEWPORT_BREAKPOINTS (which defaults to [576, 768, 992]) and browser will be responsible for choosing the best image to display (based upon the screen viewport).

You can use DJANGOCMS_PICTURE_RATIO to set the width/height ratio of images if these values are not set explicitly on the image::

DJANGOCMS_PICTURE_RATIO = 1.618

We use the golden ratio <https://en.wikipedia.org/wiki/golden_ratio>_, approximately 1.618, as a default value for this.

When working out sizes for the image, the system will use the following values, of preference:

  • the width or height set in the Thumbnail options
  • Autoscale
  • the Width and Height

We recommend setting width or height values around a placeholder so when the plugin uses Autoscale it can discover them::

{% with 720 as width and 480 as height %}
    {% placeholder content %}
{% endwith %}

Further configuration can be achieved through the django Filer settings <https://django-filer.readthedocs.io/en/latest/settings.html>_.

Running Tests

You can run tests by executing::

virtualenv env
source env/bin/activate
pip install -r test_requirements/base.txt
python setup.py test

.. |pypi| image:: https://badge.fury.io/py/djangocms-picture.svg :target: http://badge.fury.io/py/djangocms-picture .. |build| image:: https://travis-ci.org/divio/djangocms-picture.svg?branch=master :target: https://travis-ci.org/divio/djangocms-picture .. |coverage| image:: https://codecov.io/gh/divio/djangocms-picture/branch/master/graph/badge.svg :target: https://codecov.io/gh/divio/djangocms-picture

.. |python| image:: https://img.shields.io/badge/python-3.5+-blue.svg :target: https://pypi.org/project/djangocms-picture/ .. |django| image:: https://img.shields.io/badge/django-2.2,%203.0,%203.1-blue.svg :target: https://www.djangoproject.com/ .. |djangocms| image:: https://img.shields.io/badge/django%20CMS-3.7%2B-blue.svg :target: https://www.django-cms.org/

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].