https://github.com/arteria/django-background-image
Allow to set a background image from the admin site.
https://github.com/arteria/django-background-image
Last synced: about 2 months ago
JSON representation
Allow to set a background image from the admin site.
- Host: GitHub
- URL: https://github.com/arteria/django-background-image
- Owner: arteria
- License: bsd-3-clause
- Created: 2014-04-16T07:27:55.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2017-03-27T07:16:10.000Z (about 8 years ago)
- Last Synced: 2025-03-22T14:35:03.453Z (3 months ago)
- Language: Python
- Size: 6.84 KB
- Stars: 7
- Watchers: 4
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
django-background-image
=======================Allow to set a background image from the admin site.
Installation/Usage
===Get the [latest stable release from the Python package index](https://pypi.python.org/pypi/django-background-image) using pip
pip install django-background-image
or the latest development version from Github using
pip install -e git+git://github.com/arteria/django-background-image.git#egg=background_image
Afterwards, add ``background_image`` to your project settings' ``INSTALLED_APPS`` and create your tables.In your e.g. ``base.html`` load the template tag using ``{% load background_image_tags %}``, then do something like
Add an image using the admin site, http://localhost/admin/background_image/backgroundimage/add/, and you're ready to go.
Credits and Kudos
=================Singleton pattern taken from https://gist.github.com/senko/5028413.
Known Issues, Notes and TODOs
===
* CSS backgound-size: cover does not work in IE8.
* The uploaded image must be optimized before uploading. Not downsampling, compression, .. will be applied.