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.

14 lines
480 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

from os import path
from django.apps import AppConfig
VERBOSE_APP_NAME = '人才招聘' #别的app也是这样全部复制把这里改为对面的app别名即可。
def get_current_app_name(file):
return path.dirname(file).replace('\\','/').split('/')[-1]
class AppVerboseNameConfig(AppConfig):
name = get_current_app_name(__file__)
verbose_name = VERBOSE_APP_NAME
default_app_config = get_current_app_name(
__file__) + '.__init__.AppVerboseNameConfig'