AppConfig.models_module in Django

AppConfig.models_module: This is attribute Module containing the models.

    Ex:- <module 'django.contrib.admin.models' from 'django/contrib/admin/models.py'>.

  • It may be None if the application doesn’t contain a models module. 
        Note: The database related signals such as pre_migrate and post_migrate are only emitted for                 applications that have a models module.


Comments

Popular posts from this blog

Internationalization (Language Setting) in Django

reverse_lazy() Method in Django

CharFilter in Django