site.json no longer needed

This commit is contained in:
j 2011-01-23 01:06:18 +05:30
parent 16f1c42ff8
commit 029160414f
2 changed files with 0 additions and 13 deletions

View file

@ -81,15 +81,3 @@ def editPage(request):
return render_to_json_response(response) return render_to_json_response(response)
actions.register(getPage) 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")

View file

@ -21,7 +21,6 @@ urlpatterns = patterns('',
(r'^admin/', include(admin.site.urls)), (r'^admin/', include(admin.site.urls)),
(r'^ajax_filtered_fields/', include('ajax_filtered_fields.urls')), (r'^ajax_filtered_fields/', include('ajax_filtered_fields.urls')),
(r'^api/upload/$', 'archive.views.firefogg_upload'), (r'^api/upload/$', 'archive.views.firefogg_upload'),
(r'^site.json$', 'app.views.site_json'),
(r'^timeline$', 'app.views.timeline'), (r'^timeline$', 'app.views.timeline'),
(r'^file/(?P<oshash>.*)$', 'archive.views.lookup_file'), (r'^file/(?P<oshash>.*)$', 'archive.views.lookup_file'),
(r'^api/$', include('api.urls')), (r'^api/$', include('api.urls')),