Models

Blog

class djangoapp_sample.models.blog.Blog(*args, **kwargs)[source]

A very simple blog to contain articles.

title

Required unique title string.

get_absolute_url()[source]

Return absolute URL to the blog detail view.

Returns:An URL.
Return type:string

Article

class djangoapp_sample.models.article.Article(*args, **kwargs)[source]

A simple article for a blog.

blog

Required related blog object.

title

Required title string.

content

Optionnal text content.

publish_start

Required publication date determine when article will be available.

get_absolute_url()[source]

Return absolute URL to the article detail view.

Returns:An URL.
Return type:string