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',
|
|
|
|
)
|
|
|
|
|
|
|
|
TEMPLATE_CONTEXT_PROCESSORS = (
|
|
|
|
'django.contrib.auth.context_processors.auth',
|
|
|
|
'django.core.context_processors.debug',
|
|
|
|
'django.core.context_processors.media',
|
|
|
|
'django.core.context_processors.request',
|
|
|
|
'session_csrf.context_processor',
|
|
|
|
|
|
|
|
'django.contrib.messages.context_processors.messages',
|
|
|
|
|
|
|
|
'mkt.site.context_processors.i18n',
|
|
|
|
'mkt.site.context_processors.global_settings',
|
|
|
|
'mkt.site.context_processors.static_url',
|
|
|
|
'jingo_minify.helpers.build_ids',
|
|
|
|
)
|
2012-02-09 04:58:04 +04:00
|
|
|
|
2012-02-14 12:56:35 +04:00
|
|
|
TEMPLATE_CONTEXT_PROCESSORS += ('mkt.experiments.context_processors.fragment',)
|
|
|
|
|
|
|
|
|
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',
|
|
|
|
'js/lib/jquery.pjax.js',
|
|
|
|
'js/lib/jquery.cookie.js',
|
|
|
|
'js/zamboni/storage.js',
|
|
|
|
'js/impala/serializers.js',
|
|
|
|
|
|
|
|
# Developer Hub-specific stuff.
|
|
|
|
'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
|