PY-17107: Removing outdated deprecated code
[idea/community.git] / python / helpers / pycharm / django_manage_shell.py
index ec8af3a8f1bd73cc25fca2418d338eba2bcb8381..b83708e1b619b9235045912d7ae18aa59fb7c8f2 100644 (file)
@@ -28,20 +28,5 @@ def run(working_dir):
 
   fixGetpass()
 
-  try:
-      #import settings to prevent circular dependencies later on import django.db
-      from django.conf import settings
-      apps=settings.INSTALLED_APPS
-
-      # From django.core.management.shell
-
-      # XXX: (Temporary) workaround for ticket #1796: force early loading of all
-      # models from installed apps.
-      from django.db.models.loading import get_models
-      get_models()
-
-  except:
-      pass
-
   run_module(manage_file, None, '__main__', True)