Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Learning 01 #1

Open
Rahullkumr opened this issue Jan 30, 2025 · 0 comments
Open

Learning 01 #1

Rahullkumr opened this issue Jan 30, 2025 · 0 comments
Assignees

Comments

@Rahullkumr
Copy link
Owner

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

@Rahullkumr Rahullkumr self-assigned this Jan 30, 2025
@Rahullkumr Rahullkumr pinned this issue Jan 30, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant