From 029160414f225e23d20ae0e602629580e9c7d068 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 23 Jan 2011 01:06:18 +0530 Subject: [PATCH] site.json no longer needed --- pandora/app/views.py | 12 ------------ pandora/urls.py | 1 - 2 files changed, 13 deletions(-) diff --git a/pandora/app/views.py b/pandora/app/views.py index e3f6fb08..0c7aae08 100644 --- a/pandora/app/views.py +++ b/pandora/app/views.py @@ -81,15 +81,3 @@ def editPage(request): return render_to_json_response(response) actions.register(getPage) - -def site_json(request): - ''' - return render_to_json_response(siteJson()) - ''' - siteSettings = {} - for s in models.SiteSettings.objects.all(): - siteSettings[s.key] = s.value - context = RequestContext(request, {'settings': settings, - 'siteSettings': siteSettings}) - return render_to_response('site.json', context, - mimetype="application/javascript") diff --git a/pandora/urls.py b/pandora/urls.py index 95c043be..72878e06 100644 --- a/pandora/urls.py +++ b/pandora/urls.py @@ -21,7 +21,6 @@ urlpatterns = patterns('', (r'^admin/', include(admin.site.urls)), (r'^ajax_filtered_fields/', include('ajax_filtered_fields.urls')), (r'^api/upload/$', 'archive.views.firefogg_upload'), - (r'^site.json$', 'app.views.site_json'), (r'^timeline$', 'app.views.timeline'), (r'^file/(?P.*)$', 'archive.views.lookup_file'), (r'^api/$', include('api.urls')),