Commit bd7740a8 by David Ormsbee

removed conditional loading of apps

parent d267812f
...@@ -10,7 +10,11 @@ We should make a method that calls all these config methods so that you just ...@@ -10,7 +10,11 @@ We should make a method that calls all these config methods so that you just
make one call at the end of your site-specific dev file to reset all the make one call at the end of your site-specific dev file to reset all the
dependent variables (like INSTALLED_APPS) for you. dependent variables (like INSTALLED_APPS) for you.
TODO: IMMEDIATE TODO:
1. Fix logging()
2.
Longer TODO:
1. Right now our treatment of static content in general and in particular 1. Right now our treatment of static content in general and in particular
course-specific static content is haphazard. course-specific static content is haphazard.
2. We should have a more disciplined approach to feature flagging, even if it 2. We should have a more disciplined approach to feature flagging, even if it
...@@ -314,43 +318,37 @@ MIDDLEWARE_CLASSES = ( ...@@ -314,43 +318,37 @@ MIDDLEWARE_CLASSES = (
) )
################################### APPS ####################################### ################################### APPS #######################################
def installed_apps(): INSTALLED_APPS = (
"""If you want to get a different set of INSTALLED_APPS out of this, you'll # Standard ones that are always installed...
have to set ASKBOT_ENABLED and COURSEWARE_ENABLED to True/False and call 'django.contrib.auth',
this method. We can't just take these as params because other pieces of the 'django.contrib.contenttypes',
code check fo the value of these constants. 'django.contrib.humanize',
""" 'django.contrib.messages',
# We always install these 'django.contrib.sessions',
STANDARD_APPS = ['django.contrib.auth', 'django.contrib.sites',
'django.contrib.contenttypes', 'django.contrib.staticfiles',
'django.contrib.humanize', 'south',
'django.contrib.sessions',
'django.contrib.sites', # Our courseware
'django.contrib.messages', 'circuit',
'django.contrib.staticfiles', 'courseware',
'track', 'perfstats',
'util'] 'student',
COURSEWARE_APPS = ['circuit', 'static_template_view',
'courseware', 'staticbook',
'student', 'simplewiki',
'static_template_view', 'track',
'staticbook', 'util',
'simplewiki',
'perfstats'] # For Askbot
ASKBOT_APPS = ['django.contrib.sitemaps', 'django.contrib.sitemaps',
'django.contrib.admin', 'django.contrib.admin',
'south', 'django_countries',
'askbot.deps.livesettings', 'djcelery',
'askbot', 'djkombu',
'keyedcache', 'askbot',
'robots', 'askbot.deps.livesettings',
'django_countries', 'followit',
'djcelery', 'keyedcache',
'djkombu', 'robots',
'followit'] )
return tuple(STANDARD_APPS +
(COURSEWARE_APPS if COURSEWARE_ENABLED else []) +
(ASKBOT_APPS if ASKBOT_ENABLED else []))
INSTALLED_APPS = installed_apps()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment