aldryn-blog
所属分类:博客
开发工具:Python
文件大小:77KB
下载次数:0
上传日期:2015-10-22 14:05:49
上 传 者:
sh-1993
说明: aldryn博客已弃用。请使用aldryn新闻博客!
(aldryn-blog IS DEPRECATED. PLEASE USE aldryn-newsblog!)
文件列表:
.coveragerc (197, 2015-06-25)
.travis.yml (245, 2015-06-25)
LICENSE.txt (1475, 2015-06-25)
MANIFEST.in (170, 2015-06-25)
addon.json (432, 2015-06-25)
aldryn_blog (0, 2015-06-25)
aldryn_blog\__init__.py (100, 2015-06-25)
aldryn_blog\admin.py (2617, 2015-06-25)
aldryn_blog\cms_app.py (293, 2015-06-25)
aldryn_blog\cms_plugins.py (2159, 2015-06-25)
aldryn_blog\cms_toolbar.py (969, 2015-06-25)
aldryn_blog\conf.py (235, 2015-06-25)
aldryn_blog\feeds.py (1515, 2015-06-25)
aldryn_blog\forms.py (3716, 2015-06-25)
aldryn_blog\locale (0, 2015-06-25)
aldryn_blog\locale\de (0, 2015-06-25)
aldryn_blog\locale\de\LC_MESSAGES (0, 2015-06-25)
aldryn_blog\locale\de\LC_MESSAGES\django.mo (2397, 2015-06-25)
aldryn_blog\locale\de\LC_MESSAGES\django.po (4645, 2015-06-25)
aldryn_blog\locale\en (0, 2015-06-25)
aldryn_blog\locale\en\LC_MESSAGES (0, 2015-06-25)
aldryn_blog\locale\en\LC_MESSAGES\django.mo (378, 2015-06-25)
aldryn_blog\locale\en\LC_MESSAGES\django.po (3635, 2015-06-25)
aldryn_blog\locale\fr (0, 2015-06-25)
aldryn_blog\locale\fr\LC_MESSAGES (0, 2015-06-25)
aldryn_blog\locale\fr\LC_MESSAGES\django.mo (420, 2015-06-25)
aldryn_blog\locale\fr\LC_MESSAGES\django.po (3672, 2015-06-25)
aldryn_blog\locale\it (0, 2015-06-25)
aldryn_blog\locale\it\LC_MESSAGES (0, 2015-06-25)
aldryn_blog\locale\it\LC_MESSAGES\django.mo (421, 2015-06-25)
aldryn_blog\locale\it\LC_MESSAGES\django.po (3673, 2015-06-25)
aldryn_blog\migrations (0, 2015-06-25)
aldryn_blog\migrations\0001_initial.py (9512, 2015-06-25)
aldryn_blog\migrations\0002_auto__add_field_post_key_visual__add_field_post_lead_in.py (13055, 2015-06-25)
aldryn_blog\migrations\0003_auto__add_field_post_language.py (12766, 2015-06-25)
aldryn_blog\migrations\0004_date_to_datetime_step1.py (13386, 2015-06-25)
aldryn_blog\migrations\0005_date_to_datetime_step2.py (12993, 2015-06-25)
... ...
===============
Aldryn Blog App
===============
Please note that this application has been superseded by `Aldryn News & Blog
`_, and may not receive any future updates.
.. image:: https://travis-ci.org/aldryn/aldryn-blog.svg?branch=master
:target: https://travis-ci.org/aldryn/aldryn-blog
.. image:: https://img.shields.io/coveralls/aldryn/aldryn-blog.svg
:target: https://coveralls.io/r/aldryn/aldryn-blog
Simple blogging application. It allows you to:
- write a tagable post message
- plug in latest post messages (optionally filtered by tags)
- attach post message archive view
Installation
============
Aldryn Platform Users
---------------------
Choose a site you want to install the add-on to from the dashboard. Then go to ``Apps -> Install app`` and click ``Install`` next to ``Blog`` app.
Redeploy the site.
Manual Installation
-------------------
**NOTE**: If you are using a database other than PostgresSQL, check out the table below.
Database support:
+---------------+----------------------------+-----------------+
| SQLite3 | MySQL | PostgresSQL |
+===============+============================+=================+
| Not supported | Requires Time zone support | Fully supported |
+---------------+----------------------------+-----------------+
Run ``pip install aldryn-blog``.
Add below apps to ``INSTALLED_APPS``: ::
INSTALLED_APPS = [
...
'aldryn_blog',
'aldryn_common',
'django_select2',
'djangocms_text_ckeditor',
'easy_thumbnails',
'filer',
'hvad',
'taggit',
'hvad',
# for search
'aldryn_search',
'haystack',
...
]
Posting
=======
You can add post messages in the admin interface now. Search for the label ``Aldryn_Blog``.
In order to display them, create a CMS page and install the app there (choose ``Blog`` from the ``Advanced Settings -> Application`` dropdown).
Now redeploy/restart the site again.
The above CMS site has become a blog post archive view.
About the Content of a Post
---------------------------
In Aldryn Blog, there are two content fields in each Post which may be confusing:
1. Lead-In and
2. Body
The Lead-In is text/html only and is intended to be a brief "teaser" or introduction into the blog post. The lead-in is shown in the blog list-views and is presented as the first paragraph (or so) of the blog post itself. **It is not intended to be the whole blog post.**
To add the body of the blog post, the CMS operator will:
1. Navigate to the blog post view (*not* the list view);
2. Click the "Live" button in the CMS toolbar to go into edit-mode;
3. Click the "Structure" button to enter the structure sub-mode;
4. Here the operator will see the placeholder "ALDRYN_BLOG_POST_CONTENT", use the menu on the far right of the placeholder to add whatever CMS plugin the operator wishes –– this will often be the Text plugin;
5. Double-click the new Text plugin (or whatever was selected) to add the desired content;
6. Save changes on the plugin's UI;
7. Press the "Publish" button in the CMS Toolbar.
Available CMS Plug-ins
======================
* ``Latest Blog Entries`` plugin lets you list **n** most frequent blog entries filtered by tags.
* ``Blog Authors`` plugin lists blog authors and the number of posts they have authored.
* ``Tags`` plugin lists the tags applied to all posts and allows filtering by these tags.
Search
======
If you want the blog posts to be searchable, be sure to install ``aldryn-search`` and its dependencies.
Your posts will be searchable using ``django-haystack``.
You can turn it this behavior off by setting ``ALDRYN_BLOG_SEARCH = False`` in your django settings.
Additional Settings
===================
* ``ALDRYN_BLOG_SHOW_ALL_LANGUAGES``: By default, only the blog posts in the current language will be displayed. By setting the value of this option to ``True``, you can change the behaviour to display all posts from all languages instead.
* ``ALDRYN_BLOG_USE_RAW_ID_FIELDS``: Enable raw ID fields in admin (default = False)
近期下载者:
相关文件:
收藏者: