Skip to content

Instantly share code, notes, and snippets.

View rando305's full-sized avatar

Randy Ostler rando305

View GitHub Profile
@rando305
rando305 / helpers.py
Last active August 29, 2015 14:18
Imports
from django.conf import settings
from django.template import VariableNode, Variable
from django.template.loader import get_template
from django.template.loader_tags import BlockNode, ExtendsNode
...
Traceback
/usr/bin/python2.7 /home/randy/Downloads/pycharm-4.0.5/helpers/pydev/pydevd.py --multiproc --client 127.0.0.1 --port 38135 --file /home/randy/aws/Ops/manage.py shell_plus
pydev debugger: process 17070 is connecting
@rando305
rando305 / toolbar
Created March 13, 2015 18:22
Error caused by including template middleware for the toolbar
2015-03-13 14:21:31,613 ERROR 8490 [root] exceptions.py:9 - Uncaught exception from <class 'django.core.handlers.wsgi.WSGIHandler'>
Traceback (most recent call last):
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 87, in get_response
response = middleware_method(request)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/debug_toolbar/middleware.py", line 96, in process_request
toolbar = DebugToolbar(request)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/debug_toolbar/toolbar/loader.py", line 42, in __init__
self.load_panels()
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/debug_toolbar/toolbar/loader.py", line 72, in load_panels
raise exceptions.ImproperlyConfigured, 'Error importing debug panel %s: "%s"' % (panel_module, e)
@rando305
rando305 / gist:374d678e67b212ab09b5
Created March 5, 2015 15:02
birch - vagrant up fail
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Connection timeout. Retrying...
I get this error. But I don't know how to control the GuestAdditions installations.
==> default: Machine booted and ready!
Got different reports about installed GuestAdditions version:
Virtualbox on your host claims: 4.2.0
ubuntu@ip-172-31-3-167:~$ sudo /edx/bin/update configuration Kifli
PLAY [Deploy the edx_ansible role] ********************************************
TASK: [edx_ansible | git checkout edx_ansible repo into edx_ansible_code_dir] ***
failed: [localhost] => {"failed": true, "item": ""}
msg: Failed to checkout Kifli
FATAL: all hosts have already failed -- aborting
@rando305
rando305 / gist:83287c8cfd17436a265a
Last active August 29, 2015 14:16
Unicode Error in Admin
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/options.py", line 583, in wrapper
return self.admin_site.admin_view(view)(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/utils/decorators.py", line 105, in _wrapped_view
response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/views/decorators/cache.py", line 52, in _wrapped_view_func
response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/sites.py", line 206, in inner
@rando305
rando305 / base.html
Created February 11, 2015 23:29
favicon problems
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="/static/favicon.ico">
<title>{% page_attribute "page_title" %}</title>
<!-- Bootstrap core CSS -->
<link href="http://getbootstrap.com/dist/css/bootstrap.min.css" rel="stylesheet">