Ticket #6300: apps_namespace_patch.diff
File apps_namespace_patch.diff, 1.1 KB (added by , 17 years ago) |
---|
-
django/conf/__init__.py
9 9 import os 10 10 import time # Needed for Windows 11 11 from django.conf import global_settings 12 from django import apps 12 13 13 14 ENVIRONMENT_VARIABLE = "DJANGO_SETTINGS_MODULE" 14 15 … … 110 111 new_installed_apps.append(app) 111 112 self.INSTALLED_APPS = new_installed_apps 112 113 114 # Appends applications to django.apps applications package 115 for app in self.INSTALLED_APPS: 116 short_name = app.split('.')[-1] 117 setattr(apps, short_name, __import__(app)) 118 113 119 if hasattr(time, 'tzset'): 114 120 # Move the time zone info into os.environ. See ticket #2315 for why 115 121 # we don't do this unconditionally (breaks Windows). -
django/apps/__init__.py
1 """Applications repository"""