dynamically loading django apps at runtime

Update for Django 1.8 on how to load an app that is not loaded yet from collections import OrderedDict from django.apps import apps from django.conf import settings from django.core import management new_app_name = “my_new_app” settings.INSTALLED_APPS += (new_app_name, ) # To load the new app let’s reset app_configs, the dictionary # with the configuration of loaded … Read more

Sharing models between Django apps

The answer is yes. It’s perfectly okay for one application inside your django project to import models from another application. The power of a django project lies in the apps and their interactions. Also make sure that you have utility applications importing models from more generic applications and not the other way. So “userstatistics” app … Read more