Skip to content

django-blog-zinnia/zinnia-theme-foundation

develop
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Zinnia-theme-foundation

Zinnia-theme-foundation is a python package providing a theme builded on Zurb Foundation 5 for django-blog-zinnia. Inspired by the zinnia-theme-boostrap.

Getting Start

Download the package

The Zinnia-theme-foundation package required django and django-blog-zinnia.

You can install zinnia-theme-foundation with pip :

pip install zinnia-theme-foundation

If you want the dev version :

pip install git+git://github.com/django-blog-zinnia/zinnia-theme-foundation.git

Add the theme in django

Edit you settings.py and add zinnia_foundation in your INSTALLED_APP BEFORE the zinnia app to bypass the loading of the Zinnia's templates :

INSTALLED_APPS = (
    ...
    'zinnia_foundation', # BEFORE the "zinnia" app
    ...
    'zinnia',
)

You need to use the https://pypi.python.org/pypi/django-app-namespace-template-loader package for loading the templates.

At the end of your settings.py :

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'OPTIONS': {
            'loaders': [
                'app_namespace.Loader',
                'django.template.loaders.app_directories.Loader',
            ],
            'context_processors': [
                'django.contrib.auth.context_processors.auth',
                'django.template.context_processors.i18n',
                'django.template.context_processors.request',
                'django.contrib.messages.context_processors.messages',
                'zinnia.context_processors.version',
            ]
        }
    }
]

Your theme is ready to use !

Customize the design

You can Customize Zinnia’s look and feel or change the Zurb Foundation design with Sass.

Icons are Foundation Icon Fonts 3.

Licence

Zinnia-theme-foundation is licensed under the GNU GENERAL PUBLIC LICENSE version 3.

About

Zinnia-theme-foundation is a python package providing a theme built on Zurb Foundation for django-blog-zinnia.

Resources

License

Stars

Watchers

Forks

Packages

No packages published