I have seen that there are two ways to add a Django app to the settings
. Assuming the app is app_name
, I've seen the following patters:
- Using
app_name
INSTALLED_APPS = [
# other apps
'app_name'
]
- Using
app_name.apps.AppNameConfig
INSTALLED_APPS = [
# other apps
'app_name.apps.AppNameConfig'
]
I am wondering if there is any difference between these two patterns or if they are equivalent. I also wonder if there is any preferred way to add an application.