This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

django CMS plugin for configuring background images in edit mode via CSS rules.


  • Django 1.8+
  • django CMS 3.3+


In your Python environment run

$ pip install cmsplugin-css-background

This will install the latest stable version of the plugin package. To install the package’s latest repository snapshot run

$ pip install -e git+

Then add the plugin to INSTALLED_APPS list:


and finally, roll database migrations:

$ python migrate cmsplugin_css_background


  1. Define a placeholder in your template this way:

    {% with css_selector = '#some-element' %}
        {% placeholder 'some_element_background' %}
    {% endwith %}

    The placeholder might be located almost anywhere, not necessarily within/beside the element you want to change background. But it is recommended to keep both together for convenience.

    Optionally, you might add an entry for your placeholder to PLACEHOLDER_CONF settings dictionary to restrict allowed plugin types to CSS Background and assign a readable title to the placeholder’s dragbar instead of generated Some_Element_Background.

  2. Add an instance of CSS Background from Generic plugin group to the placeholder in CMS admin.


    This package is aware of cmsplugin-filer. If the latter is installed and enabled, then you also get extra CSS Background plugin available in Filer plugins group. This option allows you to use images managed by Filer.

The plugin is rendered as <style /> HTML element in-place, like this:

<style type="text/css">
#some-element {
    /* here 'background-' CSS rules go */

There is a single template, located at cms/plugins/css-background.html and it takes a single extra context variable css_selector which defines the element(s) to assign background settings.

By default, background properties are rendered as a list of separate rules, but there is one-liner option too. To change the way plugin rendered override the plugin template and replace

{{ instance.as_separate_rules }}


{{ instance.as_single_rule }}
Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
cmsplugin_css_background-0.1.0-py2.py3-none-any.whl (9.3 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Jun 27, 2016
cmsplugin-css-background-0.1.0.tar.gz (6.3 kB) Copy SHA256 Checksum SHA256 Source Jun 27, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting