Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does INSTALLED_APPS setting in Django actually do?

Tags:

python

django

What does this actually do? I recently branched out my project from 1 app into 6 different apps and forgot to update the INSTALLED_APPS part of my settings file. Everything still works even though I didn't list the new apps in. Is that supposed to happen? Do I need to include all my apps in INSTALLED_APPS?

like image 517
super9 Avatar asked May 11 '11 03:05

super9


1 Answers

yes.

INSTALLED_APPS helps django to sync the database, run tests, get the urls to work and more related issues.

Maybe your installed apps still works because the main one calls the others with imports, a django app is nothing more that a simple python module that is imported when called in the settings file, that's why you get a invalid syntax error after you run the development server because an import won't work with invalid syntax.

like image 83
Fitoria Avatar answered Sep 30 '22 00:09

Fitoria