You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The app is working without registering it in settings.py
I have created one Django project and also created an app named as app1.
Inside app1's views.py, i created 5 functions and also created routes in urls.py for each function.
when I request the route in the browser after running the project it is working fine.
Why?
If your app only contains views and URLs, it can work without registering in INSTALLED_APPS. but for Database Models, migrations, and Django’s admin panel, registering it is necessary.
Learning
even though it is working fine, always register new apps to avoid future errors
Always register apps in setting.py file
The text was updated successfully, but these errors were encountered:
The app is working without registering it in settings.py
I have created one Django project and also created an app named as app1.
Inside app1's views.py, i created 5 functions and also created routes in urls.py for each function.
when I request the route in the browser after running the project it is working fine.
Why?
Learning
Always register apps in setting.py file
The text was updated successfully, but these errors were encountered: