--- a/tweetcast/server-gevent/tweetcast.py Mon Dec 12 12:54:14 2011 +0100
+++ b/tweetcast/server-gevent/tweetcast.py Mon Dec 12 14:26:20 2011 +0100
@@ -11,9 +11,10 @@
from gevent.pywsgi import WSGIServer
from urlparse import parse_qs
import datetime
+from server_setup import SQL_CONNECT, WEB_PORT
Base = declarative_base()
-engine = create_engine('postgresql://raph:yusao6Kh@localhost/tweets')
+engine = create_engine(SQL_CONNECT)
Session = sessionmaker(bind=engine)
class TweetSource(Base):
@@ -134,4 +135,4 @@
return ['<h1>Not Found</h1>']
session = Session()
-WSGIServer(('', 8888), webserver).serve_forever()
\ No newline at end of file
+WSGIServer(('', WEB_PORT), webserver).serve_forever()
\ No newline at end of file