A Django Application for Boundless Exchange Themes.
Project description
django-exchange-themes is an appearance application that allows administrators the ability to select a predefined theme or customize their own theme.
The license for this matches the license found for colorfield, which is BSD License and listed in the classifiers section of setup.py. The author has also been added to the setup.py of django-exchange-themes.
Installation
pip install
pip install git+git://github.com/boundlessgeo/django-exchange-themes@master#egg=appearance
Add the following to your Django configuration (settings) file
INSTALLED_APPS = ( 'appearance', ) + INSTALLED_APPS
Run migrations
python manage.py migrate
Collect static
python manage.py collectstatic --noinput
Coverage
coverage within the app
virtualenv venv source venv/bin/activate pip install . pip install coverage cd appearance/tests python manage.py migrate python manage.py collectstatic --noinput coverage run manage.py test appearance
The Theme model has the following fields:
name (Theme name)
CharField
Max length is 28
description (Theme description)
CharField
Max length is 64
default_theme (Default application included Theme)
BooleanField
Not editable in Admin console
active_theme (Enables Theme to be active)
BooleanField
title (Theme landing page title)
CharField
Max length is 32
Can be blank
tagline (Theme landing page tagline)
CharField
Max length is 64
Can be blank
running_hex (Header/Footer color)
ColorField (GUI to select the color)
Default is 0F1A2C
running_text_hex (Header/Footer text color)
ColorField (GUI to select the color)
Default is FFFFFF
running_link_hex (Header/Footer link color)
ColorField (GUI to select the color)
Default is 0F1A2C
pb_text (Powered by text)
CharField
Max length is 64
Default is ‘Boundless Spatial’
pb_link (Powered by link)
URLField
Default is ‘http://boundlessgeo.com/’
docs_link (Documentation links)
URLField
Can be blank
background_logo (Landing page background image)
ImageField
Can be blank
primary_logo (Landing page primary logo)
ImageField
Can be blank
banner_logo (Header logo)
ImageField
Can be blank
Note: The templates in appearance/templates will override existing templates in exchange. Blank fields will be accounted for and use the default settings in the template, which are Boundless Exchange defaults.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-exchange-themes-1.0.1.tar.gz
.
File metadata
- Download URL: django-exchange-themes-1.0.1.tar.gz
- Upload date:
- Size: 3.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cccd70e9d4d302fc320b073cc6b737922c5b137a7c2fc38d5bf4d6b714bf5d7 |
|
MD5 | b8bb1c3536647afea41daa797e27b466 |
|
BLAKE2b-256 | 422fd732ad4fa4876f02d1bce735184e205265f2bd797d7c32de935e3ca58762 |