Skip to content

Commit

Permalink
Add some more contrib stuff, stop it importing bits of contrib that c…
Browse files Browse the repository at this point in the history
…ause problems.
  • Loading branch information
mikebryant committed Aug 13, 2014
1 parent 5e08679 commit 6e6d605
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion django_autoconfig/autoconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@

MAX_ITERATIONS = 1000

SETTINGS = {
'AUTOCONFIG_DISABLED_APPS': [
'django.contrib.admin',
'django.contrib.auth',
],
}

class OrderingRelationship(object):
'''
This class defines a relationship between an element in a setting
Expand Down Expand Up @@ -128,7 +135,7 @@ def configure_settings(settings):

while changes:
changes = 0
for app_name in settings['INSTALLED_APPS']:
for app_name in list(settings['INSTALLED_APPS']) + ['django_autoconfig']:
if app_name not in settings.get('AUTOCONFIG_DISABLED_APPS', ()):
app_module = importlib.import_module(app_name)
else:
Expand Down

0 comments on commit 6e6d605

Please sign in to comment.