Browse Source

remove proxy thing, also test irc bot

master
Sanj 13 years ago
parent
commit
0c255463a6
  1. 10
      campchat/chat/views.py
  2. 1
      campchat/urls.py

10
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 == '':

1
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<channel>.*)', 'chat.views.main'),
# Uncomment the admin/doc line below to enable admin documentation:
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),

Loading…
Cancel
Save