Skip to content

Instantly share code, notes, and snippets.

View andyparsons's full-sized avatar
:octocat:
Writing a code. Just the one, for now.

Andy S. Parsons andyparsons

:octocat:
Writing a code. Just the one, for now.
View GitHub Profile
(edx)[edx-platform] ./manage.py lms --settings dev syncdb --traceback 13:15:58 ☁ master ☀
Traceback (most recent call last):
File "./manage.py", line 90, in <module>
startup = importlib.import_module(edx_args.startup)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/Users/andyparsons/code/academy/mcka/edx-platform/lms/startup.py", line 8, in <module>
settings.INSTALLED_APPS # pylint: disable=W0104
File "/Users/andyparsons/.virtualenvs/edx/lib/python2.7/site-packages/django/conf/__init__.py", line 54, in __getattr__
self._setup(name)
#! /usr/bin/env python
#
# Mixpanel, Inc. -- http://mixpanel.com/
#
# Python API client library to consume mixpanel.com analytics data.
import hashlib
import urllib
import time
try:
# gevent
from gevent.wsgi import WSGIServer
http_server = WSGIServer(('', port), app)
http_server.serve_forever()
# tornado
from tornado.wsgi import WSGIContainer
from tornado.httpserver import HTTPServer
from tornado.ioloop import IOLoop
http_server = HTTPServer(WSGIContainer(app))