M
M
Mikkkch2020-12-07 13:54:29
Django
Mikkkch, 2020-12-07 13:54:29

How to get a list of Django apps I've written?

Hello, is there a way to identify in the list of applications those created inside the project?
I know that the django.apps module provides an instance of apps that you can access and get a list of all the apps, but how do you know that those apps belong to a project and not some overlay on the framework or internals?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2020-12-07
@Mikkkch

What for? More like something unnecessary. All applications are listed in INSTALLED_APPS, it's just impossible to distinguish which one is yours and which one is built-in. But you can distinguish them by names, well, either add some property to apps.py for your own, by which to distinguish, or maintain your own list of your apps

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question