# 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
        return self.cmsarticle.url


class CMSSection(models.Model):
    """Models For Django CMS Sections:

    Section is the top level to contruct cms's content. Create a section before 
    adding your categories.
    """

    name = models.CharField(
        _(u"Section Name"),
        max_length=255,
        blank=False,
        help_text=_(u"Section's Name"),
    )
    slug = models.SlugField(
        _(u"Slug"),
        max_length=255,
        blank=False,
        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"),

# 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

        return self.cmsarticle.url


class CMSSection(models.Model):
    """Models For Django CMS Sections:

    Section is the top level to contruct cms's content. Create a section before 
    adding your categories.
    """

    name = models.CharField(
        _(u"Section Name"),
        max_length=255,
        blank=False,
        help_text=_(u"Section's Name"),
    )
    slug = models.SlugField(
        _(u"Slug"),
        max_length=255,
        blank=False,
        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,