diff --git a/zproject/urls.py b/zproject/urls.py index 4819c09cfe..7175a48a06 100644 --- a/zproject/urls.py +++ b/zproject/urls.py @@ -214,6 +214,12 @@ v1_api_and_json_patterns = patterns('zerver.views', 'DELETE': 'cleanup_event_queue'}), ) +# Include the dual-use patterns twice +urlpatterns += [ + url(r'^api/v1/', include(v1_api_and_json_patterns)), + url(r'^json/', include(v1_api_and_json_patterns)), +] + # Include URL configuration files for site-specified extra installed # Django apps for app_name in settings.EXTRA_INSTALLED_APPS: @@ -230,13 +236,6 @@ urlpatterns += [ url(r'^notify_tornado$', 'zerver.tornadoviews.notify'), ] -# Include the dual-use patterns twice -urlpatterns += [ - url(r'^api/v1/', include(v1_api_and_json_patterns)), - url(r'^json/', include(v1_api_and_json_patterns)), -] - - if settings.DEVELOPMENT: use_prod_static = getattr(settings, 'PIPELINE', False) static_root = os.path.join(settings.DEPLOY_ROOT,