summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-02-08 21:06:47 -0600
committerDan McGee <dan@archlinux.org>2010-02-08 21:06:47 -0600
commit964d89e11651a48e8c18c96d011ed5d9a9d97628 (patch)
treecef6d930a2ca4c7563155ffe1b494985293d93a8
parent8c077a4caa73c7e4a5e148195f1d6d3cdae572cf (diff)
Move /jsi18n/ back out of /admin/ apprelease_2010-02-08
This way we can skip the redirect to HTTPS on the real site that is not necessary by any means, and it works out for the best. Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--templates/packages/search.html2
-rw-r--r--urls.py3
2 files changed, 4 insertions, 1 deletions
diff --git a/templates/packages/search.html b/templates/packages/search.html
index 61d13bd7..e760788e 100644
--- a/templates/packages/search.html
+++ b/templates/packages/search.html
@@ -3,7 +3,7 @@
{% block title %}Arch Linux - Package Search{% endblock %}
{% block head %}
<link rel="stylesheet" type="text/css" href="/media/admin_media/css/widgets.css" />
-<script type="text/javascript" src="/admin/jsi18n/"></script>
+<script type="text/javascript" src="/jsi18n/"></script>
<script type="text/javascript" src="/media/admin_media/js/core.js"></script>
{{search_form.media}}
{% endblock %}
diff --git a/urls.py b/urls.py
index e0df2da2..77b7b569 100644
--- a/urls.py
+++ b/urls.py
@@ -109,6 +109,9 @@ urlpatterns = patterns('',
(r'^moreforums/$', 'archweb.public.views.moreforums'),
(r'^projects/$', 'archweb.public.views.projects'),
(r'^opensearch/packages/$', 'archweb.packages.views.opensearch'),
+
+# Some django internals we use
+ (r'^jsi18n/$', 'django.views.i18n.null_javascript_catalog'),
)
if settings.DEBUG == True: