Configuration

tumblelog may be configured with the following settings

TUMBLELOG_POST_TYPES

Optional, but recommended; a list of post types you’d like to use. These should take the form of 'app.Model', rather than being full import paths.

Default:

[
    'tumblelog.Article',
    'tumblelog.Text',
    'tumblelog.File',
    'tumblelog.Image',
]

Example:

TUMBLELOG_POST_TYPES = [
    'tumblelog.Text',
    'tumblelog.Image',
    'recipes.Recipe',
]

TUMBLELOG_POSTS_PER_PAGE

Optional; controls the number of posts displayed per page in the post listing views.

Default:

10

Example:

TUMBLELOG_POSTS_PER_PAGE = 15

TUMBLELOG_USE_TAGGIT

Optional; a boolean indicating whether you would like django-taggit to be used.

Default: the value of

'taggit' in settings.INSTALLED_APPS

Example:

TUMBLELOG_USE_TAGGIT = True

TUMBLELOG_TEXTFIELD_HELP_TEXT

Optional; a string used for help_text for each TextField in the contrib post types </contrib>.

Default: ''

TUMBLELOG_TEXTFIELD_HELP_TEXT = 'Uses Markdown'

TUMBLELOG_OEMBED_DEFAULT_CACHE_AGE

Optional; an integer indicating the number of seconds tumblelog should cache oEmbed provider responses.

Default: 86400 (1 day)

TUMBLELOG_OEMBED_DEFAULT_CACHE_AGE = 60 * 60 * 24 * 7  # 1 week

TUMBLELOG_FLICKR_WIDTH

Optional; an integer indicating the default width of images retrieved using the Flickr post type. Must be one of ‘640’, ‘500’, ‘240’, ‘100’, or ‘75’.

Default: 640

TUMBLELOG_OEMBED_DEFAULT_CACHE_AGE = 75

TUMBLELOG_TWITTER_LANGUAGE

Optional; a string indicating the ISO 639-1 code of the default language of Tweets retrieved using the Twitter post type. Currently supported:

  • zh-cn: Chinese (Simplified)
  • zh-tw: Chinese (Traditional)
  • da: Danish
  • nl: Dutch
  • en: English
  • fi: Filipino
  • fi: Finnish
  • fr: French
  • de: German
  • hi: Hindi
  • id: Indonesian
  • it: Italian
  • ja: Japanese
  • ko: Korean
  • ms: Malay
  • no: Norwegian
  • pl: Polish
  • pt: Portuguese
  • ru: Russian
  • es: Spanish
  • sv: Swedish
  • tr: Turkish

Default: 'en'

TUMBLELOG_TWITTER_LANGUAGE = 'ms'

TUMBLELOG_TWITTER_WIDTH

Optional; an integer indicating the default width of tweets embedded using the Twitter post type.

Default: 325

TUMBLELOG_TWITTER_WIDTH = 500

TUMBLELOG_SOUNDCLOUD_COLOR

Optional; a string containing a hex triplet used as an accent color with the SoundCloud embed, when using the SoundCloud post type.

Default: ''

TUMBLELOG_SOUNDCLOUD_COLOR = 'FF00FF'

TUMBLELOG_RSS_TITLE

Optional, but recommended; the tumblelog’s name, only used in the RSS feed’s <title> element.

Default: ''

TUMBLELOG_RSS_TITLE = 'five thirty eight'

TUMBLELOG_RSS_DESCRIPTION

Optional, but recommended; a description of the tumblelog, only used in the RSS feed’s <description> element.

Default: ''

TUMBLELOG_RSS_DESCRIPTION = 'Rigorous analysis of politics, polling, public affairs, sports, science and culture, largely through statistical means.'

TUMBLELOG_RSS_NUM

Optional; the number of recent posts to include in the RSS feed.

Default: 20

TUMBLELOG_RSS_NUM = 15

A simple and extensible tumblelog engine for Django. Created by Chuck Harmston, released under the MIT license.

Table Of Contents