Skip to content

Instantly share code, notes, and snippets.

www-data@cardstories2:~/cardstories$ ./website/manage.py shell
Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> import json
>>> from django.conf import settings
>>> from decimal import Decimal
>>> from cardstories.models import grant_user_bought_cards
>>> class ipn_obj:
[edx-platform] antoviaque@antoviaque-laptop ~/prog/edx/edx-platform (master)
$ rake django-admin[update_templates]
django-admin.py update_templates --traceback --settings=lms.envs.dev --pythonpath=.
Unknown command: 'update_templates'
Type 'django-admin.py help' for usage.
rake aborted!
Command failed with status (1): [django-admin.py update_templates --traceba...]
/home/antoviaque/.rvm/gems/ruby-1.9.3-p429@global/gems/rake-10.0.4/lib/rake/file_utils.rb:53:in `block in create_shell_runner'
/home/antoviaque/.rvm/gems/ruby-1.9.3-p429@global/gems/rake-10.0.4/lib/rake/file_utils.rb:45:in `call'
/home/antoviaque/.rvm/gems/ruby-1.9.3-p429@global/gems/rake-10.0.4/lib/rake/file_utils.rb:45:in `sh'
[edx-platform] antoviaque@antoviaque-laptop ~/prog/edx/edx-platform/rakefiles (master)
$ rake cms:update_templates
(in /home/antoviaque/prog/edx/edx-platform)
django-admin.py update_templates --traceback --settings=cms.envs.dev --pythonpath=.
2013-06-01 10:35:53,904 WARNING 9931 [xmodule.x_module] x_module.py:297 - No resource directory templates/customtag found when loading CustomTagDescriptor templates
2013-06-01 10:35:53,913 WARNING 9931 [xmodule.x_module] x_module.py:297 - No resource directory templates/poll found when loading PollDescriptor templates
2013-06-01 10:35:53,977 WARNING 9931 [xmodule.x_module] x_module.py:297 - No resource directory templates/foldit found when loading FolditDescriptor templates
2013-06-01 10:35:54,019 WARNING 9931 [xmodule.x_module] x_module.py:297 - No resource directory templates/abtest found when loading ABTestDescriptor templates
2013-06-01 10:35:55,171 WARNING 9931 [xmodule.x_module] x_module.py:297 - No resource directory templates/graphical_slider_tool found when lo
[edx-platform] antoviaque@antoviaque-laptop ~/prog/edx/edx-platform (install-ubuntu-dependencies)
$ django-admin.py help --traceback --settings=lms.envs.dev --pythonpath=.
Usage: django-admin.py subcommand [options] [args]
Options:
-v VERBOSITY, --verbosity=VERBOSITY
Verbosity level; 0=minimal output, 1=normal output,
2=verbose output, 3=very verbose output
--settings=SETTINGS The Python path to a settings module, e.g.
"myproject.settings.main". If this isn't provided, the
[edx-platform] antoviaque@antoviaque-laptop ~/prog/edx/edx-platform (install-ubuntu-dependencies)
$ rake cms:update_templates
django-admin.py help --traceback --settings=cms.envs.dev --pythonpath=.
Usage: django-admin.py subcommand [options] [args]
Options:
-v VERBOSITY, --verbosity=VERBOSITY
Verbosity level; 0=minimal output, 1=normal output,
2=verbose output, 3=very verbose output
--settings=SETTINGS The Python path to a settings module, e.g.
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAu23zAzdBiV9cweNorE/Xu9LtJg29FiH2mYHT5FAp6NBQxIkPYu3kvsP+l0D9WTKbPNXEHA71BR0QodQJ1aT5/rnZFlTUlQrTo5ck/DD5XY65fLMwSvvgdHDwDt255Q5D5nbD1RC6ImVOp4f8quCVvi9u4u9KH9TlqPwhHgArDxf9G9P4DqUqQYnQ1RDJjIBEZ0OqByc2X9/QXLvpEXYNpAOeiweJKFOlRtIuFujgDSw6J+CEFoa20p/60WW9gWpUKojQ0XetxPyLMx/cjqai9zZjgjRivyzeZHNiPO5LW3vyoPWRU3TNIT1Tf4mXrcWdqGcNMhNzN90ryakJnqJdpQ== antoviaque@antoviaque-laptop
$ git ls-files -s | awk '/120000/{print $4}'
cms/static/coffee/fixtures/edit-chapter.underscore
cms/static/coffee/fixtures/edit-textbook.underscore
cms/static/coffee/fixtures/metadata-editor.underscore
cms/static/coffee/fixtures/metadata-number-entry.underscore
cms/static/coffee/fixtures/metadata-option-entry.underscore
cms/static/coffee/fixtures/metadata-string-entry.underscore
cms/static/coffee/fixtures/no-textbooks.underscore
cms/static/coffee/fixtures/section-name-edit.underscore
cms/static/coffee/fixtures/show-textbook.underscore
@antoviaque
antoviaque / gist:6474813
Created September 7, 2013 11:26
edX configuration - Download issue with rbenv - Workaround
diff --git a/playbooks/roles/edxapp/tasks/ruby.yml b/playbooks/roles/edxapp/tasks/ruby.yml
index b34eec9..3088439 100644
--- a/playbooks/roles/edxapp/tasks/ruby.yml
+++ b/playbooks/roles/edxapp/tasks/ruby.yml
@@ -92,7 +92,7 @@
- install
- name: rbenv | install ruby $ruby_version
- shell: RBENV_ROOT=${rbenv_root} rbenv install $ruby_version
+ shell: RBENV_ROOT=${rbenv_root} rbenv install $ruby_version http://xyz.lcs.mit.edu/ruby/{{ ruby_version }}.tar.gz