Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

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

I am expecting for the separate section to appear on site. Was doing it by tutorial of the Youtuber Corey Schafer: https://www.youtube.com/watch?v=qDwdMDQ8oX4&list=PL-osiE80TeTtoQCKZ03T

You are missing a comma at the end of the first entry in INSTALLED_APPS . 'blog.apps.BlogConfig', . Also, don't post screenshots of code. Post the code itself. solarissmoke Dec 22, 2022 at 8:21

It's so simple.

Just put your application name in INSTALLED_APPS list.

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

INSTALLED_APPS = [
    'blog',

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 apps.py in your application, and put ...

from django.apps import AppConfig
class BlogConfig(AppConfig):
    name = 'blog'

Thanks !

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.