Skip to content

Instantly share code, notes, and snippets.

from picocms.models import CMSModel, CMSCategory, ActiveModelManager
from picocms import fields
ARTICLES_ROOT = 'Publications'
class Article(CMSModel):
""" Defines an article for the CMS """
date_display = models.DateTimeField(default=datetime.datetime.now()) #:
highlight = models.BooleanField(default=False, verbose_name=u'Highlight') #:
from picocms.models import CMSModel, CMSCategory, ActiveModelManager
from picocms import fields
ARTICLES_ROOT = 'Publications'
class Article(CMSModel):
""" Defines an article for the CMS """
date_display = models.DateTimeField(default=datetime.datetime.now()) #:
highlight = models.BooleanField(default=False, verbose_name=u'Highlight') #:
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title>RSS Example</title>
<description>This is an example of an RSS feed</description>
<link>http://www.domain.com/link.htm</link>
<lastBuildDate>Mon, 28 Aug 2006 11:12:55 -0400 </lastBuildDate>
<pubDate>Tue, 29 Aug 2006 09:00:00 -0400</pubDate>