Skip to main content
https://travis-ci.org/wtayyeb/django-template-theming.svg?branch=master

Django application, implement theming concept for templates, flexible and configurable from admin interface.

Installation

You can install the most recent Django Template Theming version using pip:

pip install django-template-theming

Setup

NOTE: The following settings should be added to the project file settings.py.

  1. Add ‘theming’ to INSTALLED_APPS:

    INSTALLED_APPS += ( 'theming', )
    
    if using django-compressor make sure put theming before compressor
  2. Add ‘theming.middleware.ThemingMiddleware’ to MIDDLEWARE_CLASSES:

    MIDDLEWARE_CLASSES += ( 'theming.middleware.ThemingMiddleware', )
  3. Add ‘theming.template.Loader’ to TEMPLATE_LOADERS:

    TEMPLATE_LOADERS += ( 'theming.template.Loader', )

Usage

It should create a folder themes at the project with the following structure:

django_project/
| -- themes/
    | -- default/  ** theme name
        | -- static/  ** will collected by `collectstatic` management command
        |   | -- styles/
        |   | -- scripts/
        |   | -- images/
        | -- templatefiles and folders

Contributing

Development of django-template-theming happens at github and any idea and contribution is wellcome. https://github.com/wtayyeb/django-template-theming

Credits

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_template_theming-0.8.2-py2.py3-none-any.whl (12.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file django_template_theming-0.8.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_template_theming-0.8.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3b65ac66bed8156c3bb3b20399d59e94b91896175a2f141cd17c5e6c24486321
MD5 95fadb17eba92dedc402d0ed3ffa2813
BLAKE2b-256 1121c1e53a5019adcb8524c8001206a0c178c71a8d68a9da1d54c02e5b2386c1

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.8.2 This release

1 file

0.8.1

1 file

0.8.0

1 file

0.7.10

1 file

0.7.9

1 file

0.7.8

1 file

0.7.7

1 file

0.7.6

1 file

0.7.5

2 files

0.7.4

0.7.1b0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page