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.
DjangoBlog/blog/apps.py

8 lines
312 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 django.apps import AppConfig
class BlogConfig(AppConfig):
# HJH设置默认主键字段类型为BigAutoField支持更大的自增ID
default_auto_field = 'django.db.models.BigAutoField'
# HJH定义应用的名称需要与settings.py中INSTALLED_APPS的配置一致
name = 'blog'