This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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)) |
NewerOlder