2012-01-18 21:11:06 +04:00
|
|
|
from lib.settings_base import *
|
|
|
|
|
|
|
|
APP_PREVIEW = True
|
|
|
|
ROOT_URLCONF = 'mkt.urls'
|
2012-02-09 15:27:26 +04:00
|
|
|
TEMPLATE_DIRS += (path('mkt/templates'),)
|
|
|
|
INSTALLED_APPS += (
|
|
|
|
'mkt.site',
|
|
|
|
'mkt.hub',
|
|
|
|
'mkt.submit',
|
|
|
|
'mkt.experiments',
|
|
|
|
)
|
|
|
|
SUPPORTED_NONAPPS += (
|
|
|
|
'hub',
|
|
|
|
'submit',
|
|
|
|
)
|
|
|
|
|
2012-02-14 12:36:10 +04:00
|
|
|
# Until there are enough context processors to warrant replacing the existing
|
|
|
|
# ones, let's just override them.
|
|
|
|
TEMPLATE_CONTEXT_PROCESSORS = list(TEMPLATE_CONTEXT_PROCESSORS)
|
|
|
|
TEMPLATE_CONTEXT_PROCESSORS.remove('amo.context_processors.global_settings')
|
|
|
|
TEMPLATE_CONTEXT_PROCESSORS += [
|
2012-02-09 15:27:26 +04:00
|
|
|
'mkt.site.context_processors.global_settings',
|
2012-02-14 12:36:10 +04:00
|
|
|
'mkt.experiments.context_processors.fragment',
|
|
|
|
]
|
2012-02-14 12:56:35 +04:00
|
|
|
|
|
|
|
|
2012-02-09 04:58:04 +04:00
|
|
|
NO_ADDONS_MODULES = (
|
|
|
|
'addons.views',
|
|
|
|
'devhub.views.dashboard', # The apps dashboard is a different view.
|
|
|
|
'devhub.views.submit', # Addon submit not ok, app submit a-ok.
|
|
|
|
'browse.views.personas',
|
|
|
|
'browse.views.extensions',
|
|
|
|
'browse.views.language_tools',
|
|
|
|
'browse.views.themes',
|
|
|
|
)
|
|
|
|
|
|
|
|
# Next level, no consumer for you!
|
|
|
|
NO_CONSUMER_MODULES = (
|
|
|
|
'api',
|
|
|
|
'bandwagon.views',
|
|
|
|
'browse.views',
|
|
|
|
'compat.views',
|
|
|
|
'discovery.views',
|
|
|
|
'editors.views',
|
|
|
|
'files.views',
|
|
|
|
'market.views',
|
|
|
|
'piston',
|
|
|
|
'users.views.purchases',
|
|
|
|
'users.views.payments',
|
|
|
|
'search.views',
|
|
|
|
'sharing.views',
|
|
|
|
'tags.views',
|
|
|
|
'versions.views',
|
|
|
|
'webapps.views',
|
|
|
|
)
|
|
|
|
|
|
|
|
# Specific view modules and methods that we don't want to force login on.
|
|
|
|
NO_LOGIN_REQUIRED_MODULES = (
|
|
|
|
'csp.views.policy',
|
|
|
|
'csp.views.report',
|
|
|
|
'django.views.i18n.javascript_catalog',
|
|
|
|
'django.contrib.auth.views.password_reset',
|
|
|
|
'django.contrib.auth.views.password_reset_done'
|
|
|
|
)
|
2012-02-10 06:23:37 +04:00
|
|
|
|
2012-02-09 15:27:26 +04:00
|
|
|
# Extend the bundles.
|
2012-02-10 06:23:37 +04:00
|
|
|
MINIFY_BUNDLES['css'].update({
|
2012-02-09 15:27:26 +04:00
|
|
|
'hub': (
|
|
|
|
'css/impala/base.css',
|
|
|
|
'css/hub/base.less',
|
2012-02-13 12:03:49 +04:00
|
|
|
'css/hub/header.less',
|
2012-02-09 15:27:26 +04:00
|
|
|
'css/hub/forms.less',
|
2012-02-11 05:50:27 +04:00
|
|
|
'css/submit/flow.less',
|
2012-02-09 15:27:26 +04:00
|
|
|
'css/submit/terms.less',
|
|
|
|
),
|
2012-02-10 06:23:37 +04:00
|
|
|
'marketplace-experiments': (
|
|
|
|
'marketplace-experiments/css/reset.less',
|
|
|
|
'marketplace-experiments/css/site.less',
|
|
|
|
'marketplace-experiments/css/header.less',
|
|
|
|
'marketplace-experiments/css/detail.less',
|
|
|
|
'marketplace-experiments/css/buttons.less',
|
|
|
|
'marketplace-experiments/css/slider.less',
|
|
|
|
),
|
|
|
|
})
|
|
|
|
MINIFY_BUNDLES['js'].update({
|
2012-02-09 15:27:26 +04:00
|
|
|
'hub': (
|
2012-02-11 05:50:27 +04:00
|
|
|
'js/lib/underscore.js',
|
|
|
|
'js/marketplace-experiments/jquery-1.7.1.min.js',
|
|
|
|
'js/zamboni/browser.js',
|
|
|
|
'js/hub/init.js',
|
|
|
|
'js/impala/capabilities.js',
|
2012-02-14 02:57:51 +04:00
|
|
|
# PJAX is not ready.
|
|
|
|
#'js/lib/jquery.pjax.js',
|
2012-02-11 05:50:27 +04:00
|
|
|
'js/lib/jquery.cookie.js',
|
|
|
|
'js/zamboni/storage.js',
|
|
|
|
'js/impala/serializers.js',
|
|
|
|
|
|
|
|
# Developer Hub-specific stuff.
|
2012-02-14 02:57:51 +04:00
|
|
|
#'js/submit/flow-pjax.js',
|
2012-02-11 05:50:27 +04:00
|
|
|
'js/submit/flow.js',
|
2012-02-09 15:27:26 +04:00
|
|
|
),
|
2012-02-10 06:23:37 +04:00
|
|
|
'marketplace-experiments': (
|
|
|
|
'js/marketplace-experiments/jquery-1.7.1.min.js',
|
|
|
|
'js/marketplace-experiments/slider.js',
|
|
|
|
),
|
|
|
|
})
|
|
|
|
|
2012-02-09 15:27:26 +04:00
|
|
|
# Feature flags.
|
|
|
|
POTCH_MARKETPLACE_EXPERIMENTS = False
|