Overview

Welcome to Django-article documentation

Dependencies

  • PIL
  • sorl-thumbnail
  • django-common
  • south

Installation

  • Install django-article's dependencies
    • Add to INSTALLED_APPS:

      'sorl.thumbnail',
      
  • Install django-article application

  • Add to INSTALLED_APPS:

    'article',
    
  • Add to settings.py:

    ARTICLE_PAGE_SIZE = 10
    
    TEMPLATE_CONTEXT_PROCESSORS = (
        ....
        'article.context_processors.settings',
    
    ARTICLE_FEED_TITLE = u'Blah-blah-blya'
    ARTICLE_FEED_LINK = '/feed/blog'
    ARTICLE_FEED_DESCRIPTION = u'Blah-blah-nah'
    ARTICLE_FEEDBURNER_URL = 'feedburner url of your feed'
    
  • Add to urls.py:

    from article.feed import ArticleFeed
    
    urlpatterns = patterns('',
        ...
        url(r'^blog/', include('article.urls', namespace='article')),
        url(r'^feed/article$', ArticleFeed(), name='article_feed'),
    
  • Run ./manage.py syncdb --migrate

Templates

Best way to deal with templates is just copy templates which go with application to your templates directory and customize them.