Skip to main content

This package contains one app (including a context processor and example template) to help your Django-CMS project work with Twitter Bootstrap

Project description

=====
cmsapp-rt
=====

This package contains one app (including a context processor and example template) to help your Django-CMS project
work with Twitter Bootstrap.

You may also find the cmsplugin-rt package helpful with this,
e.g. to provide a navbar in the placeholder provided.

Detailed documentation will be added to the "docs" directory.

Requirements
--------------

I built these using:

* Django 1.4
* Django-CMS 2.3.5
* South
* django-singleton-admin

Quick start
-----------

1. Add the app to your INSTALLED_APPS setting like this::

INSTALLED_APPS = (
...
'django_singleton_admin',
'cmsapp_rt.bsglobals',
)

2. Add the template context processor to your settings like this::

TEMPLATE_CONTEXT_PROCESSORS = (
...
'cmsapp_rt.bsglobals.context_processors.globals',
)

3. Extend the admin template "admin/base_site.py" using the base provided in
django-singleton-admin, instead of the usual "admin/base.html", i.e. using:

{% extends "admin/singleton_enabled_base.html" %}

Note that this template uses the "extrastyle" block, so if you also override that, you
will need to copy the contents of the provided template into your code instead.
(In that case you may not need to add the app to your installed apps either.)

4. Run `python manage.py syncdb` (or use `python manage.py migrate` if you are using South) to create the models.

5. Run `python manage.py loaddata blank_globals` to set up a blank line in the table (this is required).

6. Look at cmsapp_rt/bsglobals/templates/base.html to see how to use this app in your templates.

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

cmsapp-rt-0.0.4.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

cmsapp-rt-0.0.4.macosx-10.7-intel.exe (70.6 kB view details)

Uploaded Source

File details

Details for the file cmsapp-rt-0.0.4.tar.gz.

File metadata

  • Download URL: cmsapp-rt-0.0.4.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for cmsapp-rt-0.0.4.tar.gz
Algorithm Hash digest
SHA256 fe7a3f7a5cfa73440f89a564f5be161e41d6d5fa04b6735614f467dd51320c21
MD5 7455f102e1737851cccecb0abcd5eece
BLAKE2b-256 5c78c3d58dcad461bb83b03a299011b805f43c3838f34f68da9839ae8771b967

See more details on using hashes here.

File details

Details for the file cmsapp-rt-0.0.4.macosx-10.7-intel.exe.

File metadata

File hashes

Hashes for cmsapp-rt-0.0.4.macosx-10.7-intel.exe
Algorithm Hash digest
SHA256 33f18f46057274179b3045d72c14b05ebd1220e8e82b61882edac6911a72bd39
MD5 fee782e4ae153b0d61b80b42c19f1eeb
BLAKE2b-256 7c1ae293d277e95ba9b327cad9bd1ec9a756026da3f5ca25c16223f7119cb618

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page