Ok, I figure it out, When application configuration class is used in
INSTALLED_APPS, the name field of AppConfig subclass should be the path of
that application.

AppConfig.name¶
>
> <https://docs.djangoproject.com/en/2.2/ref/applications/#django.apps.AppConfig.name>Full
> Python path to the application, e.g. 'django.contrib.admin'.
> This attribute defines which application the configuration applies to. It
> must be set in all AppConfig
> <https://docs.djangoproject.com/en/2.2/ref/applications/#django.apps.AppConfig>
>  subclasses.
> It must be unique across a Django project.


 😊

On Mon, Apr 13, 2020 at 10:52 AM wanbao jin <[email protected]> wrote:

> When I just change the api.blogs.apps.BlogsConfig to api.blogs , it
>> worked fine. I am curious why api.blogs.apps.BlogsConfig doesn't work
>>  ....
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAM82qv2UPXhPj4kzHTrtGAHBncGXPmvV7ubrS7PWfxanU-ztgQ%40mail.gmail.com.

Reply via email to