try:
    from django.conf.urls import include, patterns, url
except ImportError:
    from django.conf.urls.defaults import include, patterns, url

from scarlet import cms

cms.autodiscover()
urlpatterns = patterns('',
    (r'^admin/', include(cms.site.urls)),
)

try:
    from scarlet_blog import blog
    urlpatterns += patterns('',
        (r'', include('scarlet_blog.blog.urls')),
    )
except ImportError:
    pass
