From 0c255463a663cd65e0c0c8b44e48f045d74c04c9 Mon Sep 17 00:00:00 2001 From: Sanj Date: Fri, 19 Aug 2011 01:43:52 +0530 Subject: [PATCH] remove proxy thing, also test irc bot --- campchat/chat/views.py | 10 ---------- campchat/urls.py | 1 - 2 files changed, 11 deletions(-) diff --git a/campchat/chat/views.py b/campchat/chat/views.py index 1a3d5cf..d2139cd 100644 --- a/campchat/chat/views.py +++ b/campchat/chat/views.py @@ -4,16 +4,6 @@ from django.shortcuts import render_to_response import urllib2 from django.http import HttpResponse -''' -PLEASE DELETE THIS VIEW. IT IS FOR SOME TOTALLY UNRELATED NONSENSE -''' -def proxyTmp(request): - url = request.GET.get("url", "") - if url != '': - txt = urllib2.urlopen(url).read() - return HttpResponse(txt) - else: - return HttpResponse('wha?') def main(request, channel): if channel == '': diff --git a/campchat/urls.py b/campchat/urls.py index f9de7db..277af98 100644 --- a/campchat/urls.py +++ b/campchat/urls.py @@ -7,7 +7,6 @@ from django.conf.urls.defaults import * urlpatterns = patterns('', # Example: # (r'^campchat/', include('campchat.foo.urls')), - (r'proxy$', 'chat.views.proxyTmp'), (r'(?P.*)', 'chat.views.main'), # Uncomment the admin/doc line below to enable admin documentation: # (r'^admin/doc/', include('django.contrib.admindocs.urls')),