remove proxy thing, also test irc bot

This commit is contained in:
Sanj 2011-08-19 01:43:52 +05:30
parent 008503d447
commit 0c255463a6
2 changed files with 0 additions and 11 deletions

View File

@ -4,16 +4,6 @@ from django.shortcuts import render_to_response
import urllib2 import urllib2
from django.http import HttpResponse 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): def main(request, channel):
if channel == '': if channel == '':

View File

@ -7,7 +7,6 @@ from django.conf.urls.defaults import *
urlpatterns = patterns('', urlpatterns = patterns('',
# Example: # Example:
# (r'^campchat/', include('campchat.foo.urls')), # (r'^campchat/', include('campchat.foo.urls')),
(r'proxy$', 'chat.views.proxyTmp'),
(r'(?P<channel>.*)', 'chat.views.main'), (r'(?P<channel>.*)', 'chat.views.main'),
# Uncomment the admin/doc line below to enable admin documentation: # Uncomment the admin/doc line below to enable admin documentation:
# (r'^admin/doc/', include('django.contrib.admindocs.urls')), # (r'^admin/doc/', include('django.contrib.admindocs.urls')),