Problem with INSTALLED_APPS in django file

If I try to add blog.apps.BlogConfig string to INSTALLED_APPS (to define the blog app), local server won't start giving me an error. Photos attached below:Terminal when launching local server Defining app in Sublime Text

I am expecting for the separate section to appear on site. Was doing it by tutorial of the Youtuber Corey Schafer:

It's so simple.

Just put your application name in INSTALLED_APPS list.

Like, if you have application name "blog", then just put ...


That's it !

Still, if you need to put name of your application in INSTALLED_APPS list as "blog.apps.BlogConfig", then just go to in your application, and put ...

from django.apps import AppConfig

class BlogConfig(AppConfig):
    name = 'blog'

Thanks !

Back to Top