Skip to content

Commit

Permalink
Fix bug 1179847: Support pontoon.m.o in dev mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmac committed Jul 2, 2015
1 parent 1f7fac7 commit 14e18d3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions bedrock/base/templates/base-resp.html
Expand Up @@ -161,6 +161,9 @@ <h2><a href="{{ url('mozorg.home') }}">{{ high_res_img('img/sandstone/header-moz
<script src="{{ settings.CDN_BASE_URL }}{{ url('tabzilla') }}"></script>
{% endblock %}
{% block js %}{% endblock %}
{% if settings.DEV %}
<script src="https://pontoon.mozilla.org/pontoon.js"></script>
{% endif %}
{% if settings.USE_GRUNT_LIVERELOAD %}
<script src="//localhost:35729/livereload.js"></script>
{% endif %}
Expand Down
3 changes: 3 additions & 0 deletions bedrock/base/templates/base.html
Expand Up @@ -144,6 +144,9 @@ <h2><a href="{{ url('mozorg.home') }}">{{ high_res_img('img/sandstone/header-moz
<script src="{{ settings.CDN_BASE_URL }}{{ url('tabzilla') }}"></script>
{% endblock %}
{% block js %}{% endblock %}
{% if settings.DEV %}
<script src="https://pontoon.mozilla.org/pontoon.js"></script>
{% endif %}
{% if settings.USE_GRUNT_LIVERELOAD %}
<script src="//localhost:35729/livereload.js"></script>
{% endif %}
Expand Down
3 changes: 3 additions & 0 deletions bedrock/settings/__init__.py
Expand Up @@ -25,6 +25,9 @@

if DEV:
ALLOWED_HOSTS = ['*']
else:
MIDDLEWARE_CLASSES += ('commonware.middleware.FrameOptionsHeader',)


# waffle flags, switches, and samples should default to True in DEV mode
WAFFLE_FLAG_DEFAULT = WAFFLE_SWITCH_DEFAULT = WAFFLE_SAMPLE_DEFAULT = DEV
Expand Down
1 change: 0 additions & 1 deletion bedrock/settings/base.py
Expand Up @@ -295,7 +295,6 @@ def JINJA_CONFIG():
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'commonware.middleware.FrameOptionsHeader',
'bedrock.mozorg.middleware.CacheMiddleware',
'dnt.middleware.DoNotTrackMiddleware',
'lib.l10n_utils.middleware.FixLangFileTranslationsMiddleware',
Expand Down

0 comments on commit 14e18d3

Please sign in to comment.