You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
345 B

# coding:utf-8
from django.apps import AppConfig
import os
default_app_config = 'post.apps.PostConfig'
VERBOSE_APP_NAME = u"博客管理"
def get_current_app_name(_file):
return os.path.split(os.path.dirname(_file))[-1]
class PrimaryBlogConfig(AppConfig):
name = get_current_app_name(__file__)
verbose_name = VERBOSE_APP_NAME