Skip to main content

A simple app for having multiple FeinCMS powered blogs on a django site.

Installation

Install from pypi using your favorite method::

pip install feincms-blogs

Usage

Add blogs to your INSTALLED_APPS.

Somewhere in your project (ideally a models.py file)::

from blogs.models import Post

Post.register_extensions(
    # These are an example - you can use whichever extensions you like
    'feincms.module.extensions.ct_tracker',
    'feincms.module.extensions.changedate',
    'feincms.module.extensions.datepublisher',
    'feincms.module.extensions.seo',
)

Post.register_templates(
    {'title': 'Post',
     'path': 'blogs/post.html',
     'regions': (
         ('main', 'Main content area'),
     )},
)

Post.create_content_type(RichTextContent)

And then in in your urls.py::

urlpatterns = urlpatterns + patterns(
    url(r'^blogs/', include('blogs.urls', namespace="blogs")),
)

This should look familiar if you’ve used FeinCMS.

There are some content types provided for use with (for example) your FeinCMS Pages::

from blogs.content import (
    RecentPostsListContent,
    BlogArchiveContent,
)

from feincms.module.page.models import Page

Page.create_content_type(RecentPostsListContent)
Page.create_content_type(BlogArchiveContent)

Download files

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

Source Distribution

FeinCMS-Blogs-0.0.7.tar.gz (8.6 kB view details)

Uploaded Source

File details

Details for the file FeinCMS-Blogs-0.0.7.tar.gz.

File metadata

  • Download URL: FeinCMS-Blogs-0.0.7.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for FeinCMS-Blogs-0.0.7.tar.gz
Algorithm Hash digest
SHA256 61432e044f428a9513a5d34da863bc70e0eb0d6ce135549ddbaa26cbd9afc104
MD5 f442860bd609d1ab1b4c83b3d6b981bd
BLAKE2b-256 b3a9899b9a7932892d94f94249f86813bda5d7963b391f42a393e6e7bd70e8c4

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.7 This release

1 file

0.0.6

1 file

0.0.5

1 file

0.0.4

1 file

0.0.3

1 file

0.0.2

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page