djangocms_blog/djangocms_blog/cms_app.py

20 lines
537 B
Python
Raw Normal View History

2014-01-04 16:07:09 +00:00
# -*- coding: utf-8 -*-
2015-09-12 22:46:05 +00:00
from __future__ import absolute_import, print_function, unicode_literals
2015-09-19 23:11:14 +00:00
from aldryn_apphooks_config.app_base import CMSConfigApp
2014-01-04 16:07:09 +00:00
from cms.apphook_pool import apphook_pool
2015-07-21 04:59:23 +00:00
from django.utils.translation import ugettext_lazy as _
2015-09-19 23:11:14 +00:00
from .cms_appconfig import BlogConfig
from .menu import BlogCategoryMenu
2014-01-04 16:07:09 +00:00
2015-09-19 23:11:14 +00:00
class BlogApp(CMSConfigApp):
2014-09-05 06:28:10 +00:00
name = _('Blog')
urls = ['djangocms_blog.urls']
2014-01-04 16:07:09 +00:00
app_name = 'djangocms_blog'
2015-09-19 23:11:14 +00:00
app_config = BlogConfig
2015-02-12 11:47:19 +00:00
menus = [BlogCategoryMenu]
2014-01-04 16:07:09 +00:00
2014-04-19 17:17:38 +00:00
apphook_pool.register(BlogApp)