Skip to content

Instantly share code, notes, and snippets.

Avatar

Giovanni Di Milia giocalitri

  • Ionic
  • Belmont MA
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am giocalitri on github.
  • I am giocalitri (https://keybase.io/giocalitri) on keybase.
  • I have a public key whose fingerprint is 3FFA 1D04 D626 E71B 9F39 6F9F 2736 9D06 7214 0437

To claim this, I am signing this object:

View migration on master
Running migrations:
Rendering model states... DONE
Applying static_replace.0001_initial...Traceback (most recent call last):
File "manage.py", line 116, in <module>
execute_from_command_line([sys.argv[0]] + django_args)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line
utility.execute()
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 346, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/base.py", line 394, in run_from_argv
View gist:e51bdfdd571f73d7f02b
Traceback (most recent call last):
File "/usr/lib/python2.7/wsgiref/handlers.py", line 85, in run
self.result = application(self.environ, self.start_response)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/contrib/staticfiles/handlers.py", line 63, in __call__
return self.application(environ, start_response)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 170, in __call__
self.load_middleware()
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 52, in load_middleware
mw_instance = mw_class()
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/middleware/locale.py", line 24, in __init__
View private.py
from .devstack import * # pylint: disable=wildcard-import, unused-wildcard-import
from .common import INSTALLED_APPS, MIDDLEWARE_CLASSES
def tuple_without(source_tuple, exclusion_list):
"""
Return new tuple excluding any entries in the exclusion list.
Needed because tuples are immutable. Order preserved.
"""
return tuple([i for i in source_tuple if i not in exclusion_list])