Browse files

fix source too

  • Loading branch information...
1 parent 7e93756 commit 261fece538165c7ea23ff940e94b215fab4d82bc @mcdonc mcdonc committed Dec 15, 2011
Showing with 4 additions and 3 deletions.
  1. +4 −3 single_file_tasks/src/tasks.py
View
7 single_file_tasks/src/tasks.py
@@ -8,9 +8,9 @@
from pyramid.httpexceptions import HTTPFound
from pyramid.session import UnencryptedCookieSessionFactoryConfig
from pyramid.view import view_config
-from pyramid.exceptions import NotFound
-from paste.httpserver import serve
+from wsgiref.simple_server import make_server
+
import sqlite3
logging.basicConfig()
@@ -93,4 +93,5 @@ def application_created_subscriber(event):
config.scan()
# serve app
app = config.make_wsgi_app()
- serve(app, host='0.0.0.0')
+ server = make_server('0.0.0.0', 8080, app)
+ server.serve_forever()

0 comments on commit 261fece

Please sign in to comment.