# Path: cms_content/settings.py
# ROOT_URL = getattr(settings, 'CMS_CONTENT_ROOT_URL', '/cms/')
# 
# Path: cms_content/settings.py
# UPLOAD_TO = getattr(settings, 'CMS_CONTENT_UPLOAD_TO', 'upload')


from datetime import datetime
from django.db import models
from django.conf import settings
from django.core.urlresolvers import reverse
from django.contrib.auth.models import User
from django.contrib.sites.models import Site
from django.contrib.comments.signals import comment_was_posted
from django.utils.translation import ugettext_lazy as _
from taggit.managers import TaggableManager
from cms_content.settings import ROOT_URL
from cms_content.settings import UPLOAD_TO
from cms_content.manager import CMSArticlePubManager
        from akismet import Akismet
        unique=True,
        help_text=_(u"Section's Slug"),
    )
    description = models.TextField(
        _(u"Section Description"),
        blank=False,
        help_text=_(u"Your Section's Description"),
    )
    image = models.ImageField(
        _(u"Image"),
        upload_to=UPLOAD_TO,
        blank=True,
        help_text=_(u"Section Image Displayed In Pages"),
    )
    created_date = models.DateTimeField(
        _(u"Create Time"),
        auto_now_add=True,
    )
    menu = models.OneToOneField(CMSMenuID)

    def __unicode__(self):
        return self.name

    class Meta:
        ordering = ['-created_date']
        verbose_name = _(u'Section')
        verbose_name_plural = _(u'Section')

    @property
    def url(self):

# Path: cms_content/settings.py
# ROOT_URL = getattr(settings, 'CMS_CONTENT_ROOT_URL', '/cms/')
# 
# Path: cms_content/settings.py
# UPLOAD_TO = getattr(settings, 'CMS_CONTENT_UPLOAD_TO', 'upload')


# Path: cms_content/models.py
from datetime import datetime
from django.db import models
from django.conf import settings
from django.core.urlresolvers import reverse
from django.contrib.auth.models import User
from django.contrib.sites.models import Site
from django.contrib.comments.signals import comment_was_posted
from django.utils.translation import ugettext_lazy as _
from taggit.managers import TaggableManager
from cms_content.settings import ROOT_URL
from cms_content.settings import UPLOAD_TO
from cms_content.manager import CMSArticlePubManager
        from akismet import Akismet

        unique=True,
        help_text=_(u"Section's Slug"),
    )
    description = models.TextField(
        _(u"Section Description"),
        blank=False,
        help_text=_(u"Your Section's Description"),
    )
    image = models.ImageField(
        _(u"Image"),
        upload_to=UPLOAD_TO,
        blank=True,
        help_text=_(u"Section Image Displayed In Pages"),
    )
    created_date = models.DateTimeField(
        _(u"Create Time"),
        auto_now_add=True,
    )
    menu = models.OneToOneField(CMSMenuID)

    def __unicode__(self):
        return self.name

    class Meta:
        ordering = ['-created_date']
        verbose_name = _(u'Section')
        verbose_name_plural = _(u'Section')

    @property
    def url(self):

        return "%s%s/%s/" % (ROOT_URL, 'section', self.slug)