Multiple blog/article app for Django/FeinCMS.
Project description
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)
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
FeinCMS-Blogs-0.0.7.tar.gz
(8.6 kB
view details)
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
Algorithm | Hash digest | |
---|---|---|
SHA256 |
61432e044f428a9513a5d34da863bc70e0eb0d6ce135549ddbaa26cbd9afc104
|
|
MD5 |
f442860bd609d1ab1b4c83b3d6b981bd
|
|
BLAKE2b-256 |
b3a9899b9a7932892d94f94249f86813bda5d7963b391f42a393e6e7bd70e8c4
|