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
% vagrant up | |
Bringing machine 'default' up with 'virtualbox' provider... | |
==> default: Importing base box 'lavash-devstack'... | |
==> default: Matching MAC address for NAT networking... | |
==> default: Setting the name of the VM: devstack_default_1435688783684_27942 | |
==> default: Clearing any previously set network interfaces... | |
==> default: Preparing network interfaces based on configuration... | |
default: Adapter 1: nat | |
default: Adapter 2: hostonly | |
==> default: Forwarding ports... |
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
% vagrant ssh | |
Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic x86_64) | |
* Documentation: https://help.ubuntu.com/ | |
New release '14.04.1 LTS' available. | |
Run 'do-release-upgrade' to upgrade to it. | |
******************************************************************* | |
* _ __ __ * | |
* _ _| |\ \/ / * |
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
% pip freeze | |
You are using pip version 6.0.8, however version 7.0.3 is available. | |
You should consider upgrading via the 'pip install --upgrade pip' command. | |
-e git+https://github.com/edx/acid-block.git@e46f9cda8a03e121a00c7e347084d142d22ebfb7#egg=acid_xblock-master | |
amqp==1.4.6 | |
analytics-python==0.4.4 | |
anyjson==0.3.3 | |
argh==0.26.1 | |
astroid==1.3.4 | |
Babel==1.3 |
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
<flashcards title="Capital cities"> | |
<flashcard question="Croatia" answer="Zagreb" /> | |
<flashcard question="France" answer="Paris" /> | |
</flashcards> |
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
14:37:38 Setting up for cms acceptance using draft | |
14:37:38 ---> pavelib.assets.update_assets | |
14:37:38 python manage.py cms --settings=acceptance preprocess_assets | |
14:37:41 xmodule_assets common/static/xmodule | |
14:37:43 ---> pavelib.assets.compile_coffeescript | |
14:37:43 node_modules/.bin/coffee --compile `find /home/jenkins/workspace/edx-platform-test-subset/lms /home/jenkins/workspace/edx-platform-test-subset/cms /home/jenkins/workspace/edx-platform-test-subset/common -type f -name "*.coffee"` | |
14:37:49 ---> pavelib.assets.compile_sass | |
14:37:49 sass --style compressed --cache-location /tmp/sass-cache --load-path ./common/static/sass --update -E utf-8 */static | |
14:37:58 write cms/static/sass/studio-main-rtl.css | |
14:38:05 write cms/static/sass/studio-main.css |
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
$ brew cask install sshfs | |
$ mkdir /Volumes/Vagrant | |
$ sshfs [email protected]:/ -p 2222 -o IdentityFile=~/devstack/.vagrant/machines/default/virtualbox/private_key /Volumes/Vagrant | |
# to unmount | |
$ umount /Volumes/Vagrant |
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
% paver update_db -s dev ✹ | |
Warning: could not find environment JSON file at '/Users/db/lms.env.json' | |
---> pavelib.servers.update_db | |
---> pavelib.prereqs.install_prereqs | |
---> pavelib.prereqs.install_ruby_prereqs | |
Ruby prereqs unchanged, skipping... | |
---> pavelib.prereqs.install_node_prereqs | |
Node prereqs unchanged, skipping... | |
---> pavelib.prereqs.install_python_prereqs | |
pip install -q --exists-action w -r requirements/edx/pre.txt |
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
from collections import defaultdict | |
data = defaultdict(lambda: defaultdict(dict)) | |
# populate the data structure | |
for row in table: | |
data[row.make][row.model][row.lotnum] = color | |
# read the data structure | |
for make, models in data.items(): | |
for model, lots in models.items(): | |
for lotnum, color in lots.items(): |
This file has been truncated, but you can view the full file.
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
% python manage.py lms syncdb --migrate --settings=cms.dev | |
Syncing... | |
DEBUG:django.db.backends:(0.000) | |
SELECT name FROM sqlite_master | |
WHERE type='table' AND NOT name='sqlite_sequence' | |
ORDER BY name; args=() | |
Creating tables ... | |
Creating table auth_permission | |
DEBUG:django.db.backends:(0.003) CREATE TABLE "auth_permission" ( | |
"id" integer NOT NULL PRIMARY KEY, |
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
Traceback: | |
File "/home/jenkins/edx-venv/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response | |
109. response = callback(request, *callback_args, **callback_kwargs) | |
File "/home/jenkins/edx-venv/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py" in _wrapped_view | |
20. return view_func(request, *args, **kwargs) | |
File "/home/jenkins/workspace/edx-platform-test-subset/cms/djangoapps/contentstore/views/course.py" in course_handler | |
260. return _create_or_rerun_course(request) | |
File "/home/jenkins/workspace/edx-platform-test-subset/common/djangoapps/util/json_request.py" in parse_json_into_request | |
27. return view_function(request, *args, **kwargs) | |
File "/home/jenkins/workspace/edx-platform-test-subset/cms/djangoapps/contentstore/views/course.py" in _create_or_rerun_course |