gnocchi-cms /

Filename Size Date modified Message
gnocchi
8 B
1.5 KB
935 B
816 B
Installation:

    pip install hg+http://bitbucket.org/funkybob/gnocchi-tools
    pip install hg+http://bitbucket.org/funkybob/gnocchi-cms

[PyPi installs coming soon, honest!]

Add to your INSTALLED APPS:

    'gnocchi.tools',
    'gnocchi.cms',

To your TEMPLATE_LOADERS add:

    'gnocchi.cms.loaders.Loader',

Set your TEMPLATE_CONTEXT_PROCESSORS processors to include:

    'gnocchi.cms.context.context_variables',

If you don't have any others, a handy shortcut is:

    from django.conf.global_settings import TEMPLATE_CONTEXT_PROCESSORS
    TEMPLATE_CONTEXT_PROCESSORS = (
        'gnocchi.cms.context.context_variables',
    ) + TEMPLATE_CONTEXT_PROCESSORS

And specify a template for DEFAULT_TEMPLATE

    DEFAULT_TEMPLATE = 'default.html'

To your URLs add:

    (r'^css/(?P<name>.*).css$', 'gnocchi.cms.views.css'),
    (r'^(?P<path>.*)$', 'gnocchi.cms.views.page'),

or just use:
    (r'', include('gnocchi.cms.urls')),

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.