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)
Release files for FeinCMS-Blogs 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| FeinCMS-Blogs-0.0.7.tar.gz | 8.6 kB | Details |
Release files / FeinCMS-Blogs-0.0.7.tar.gz
| Download URL | FeinCMS-Blogs-0.0.7.tar.gz |
|---|---|
| Size | 8.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
61432e044f428a9513a5d34da863bc70e0eb0d6ce135549ddbaa26cbd9afc104
|
|
BLAKE2b-256 checksum How to use checksums |
b3a9899b9a7932892d94f94249f86813bda5d7963b391f42a393e6e7bd70e8c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |