Skip to content

Instantly share code, notes, and snippets.

View collinanderson's full-sized avatar

Collin Anderson collinanderson

  • South Bend, Indiana
View GitHub Profile
Python 3.4.2 (v3.4.2:ab2c023a9432, Oct 5 2014, 20:42:22)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
sys.path[0] is '/Users/collin/django1.8/tests'
os.listdir('/Users/collin/django1.8/tests/migrations/migrations_22') is ['0001_my_initial_migration.py', '__init__.py']
self.migration_pkg is 'migrations.migrations_22'
Traceback (most recent call last):
import importlib
import os
import shutil
testmod = os.path.join(os.path.dirname(__file__), 'testmod')
os.mkdir(testmod)
with open(os.path.join(testmod, '__init__.py'), 'w') as f:
f.write('pass')
mod1 = os.path.join(testmod, 'mod1')
======================================================================
FAIL: test_unpickling_when_appregistrynotready (model_regress.test_pickle.ModelP
ickleTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\collin\Documents\GitHub\django1.8\tests\model_regress\test_pick
le.py", line 93, in test_unpickling_when_appregistrynotready
str('PATH'): os.environ['PATH'],
subprocess.CalledProcessError: Command '['C:\\Python34\\python.exe', 'C:\\Users\
\collin\\Documents\\GitHub\\django1.8\\mh58f5zp.py']' returned non-zero exit sta
FAIL: test_get_fields_error_when_apps_not_ready (model_meta.tests.GetFieldByNameTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/collin/django1.8/tests/model_meta/tests.py", line 186, in test_get_fields_error_when_apps_not_ready
opts.get_field('some_missing_field')
AssertionError: "Person\ has\ no\ field\ named\ \'some\_missing\_field\'\.\ The\ app\ cache\ isn\'t\ ready\ yet\,\ so\ if\ this\ is\ an\ auto\-created\ related\ field\,\ it\ might\ not\ be\ available\ yet\." does not match "Person has no field named 'some_missing_field'. The app cache isn't ready yet, so if this is an auto-created related field, it may not be available yet."
./accounts/tests.py:1:1: F401 'TestCase' imported but unused
./accounts/views.py:7:1: E302 expected 2 blank lines, found 1
./accounts/admin.py:1:1: F401 'admin' imported but unused
./accounts/forms.py:4:1: E302 expected 2 blank lines, found 1
./accounts/migrations/0001_initial.py:17:80: E501 line too long (114 > 79 characters)
./accounts/migrations/0001_initial.py:18:80: E501 line too long (88 > 79 characters)
./accounts/migrations/0001_initial.py:19:80: E501 line too long (103 > 79 characters)
./accounts/migrations/0001_initial.py:20:80: E501 line too long (196 > 79 characters)
./accounts/migrations/0001_initial.py:24:80: E501 line too long (266 > 79 characters)
./accounts/migrations/0001_initial.py:25:80: E501 line too long (229 > 79 characters)
os.environ['DJANGO_SETTINGS_MODULE'] = 'myproject.settings'
if __name__ == '__main__': # command line
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
else: # wsgi
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
class Matches(models.Model):
product_one = models.ForeignKey(Product, related_name = 'product_one')
product_two = models.ForeignKey(Product, related_name = 'product_two')
class MatchedProducts(APIView):
def get(self, request, *args, **kwargs):
product_id = kwargs.get('product_id')
matched_ids = []
$ manage.py migrate contenttypes
Operations to perform:
Apply all migrations: contenttypes
Running migrations:
No migrations to apply.
Your models have changes that are not yet reflected in a migration, and so won't be applied.
Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them.
Traceback (most recent call last):
File "/opt/oneten/ccw/proj/comcenter/manage.py", line 15, in <module>
execute_from_command_line(sys.argv)
>>> f = MyForm({'data': 3})
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "django/forms/forms.py", line 84, in __init__
self.label_suffix = label_suffix if label_suffix is not None else _(':')
File "django/utils/translation/__init__.py", line 84, in ugettext
return _trans.ugettext(message)
File "django/utils/translation/__init__.py", line 56, in __getattr__
if settings.USE_I18N:
File "django/conf/__init__.py", line 48, in __getattr__
======================================================================
ERROR: test_assignment_to_None (model_fields.test_imagefield.ImageFieldNoDimensionsTests)
----------------------------------------------------------------------
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/django_sl1wna31/tmppqd5uxrp'
======================================================================
ERROR: test_constructor (model_fields.test_imagefield.ImageFieldNoDimensionsTests)
----------------------------------------------------------------------
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/django_sl1wna31/tmppqd5uxrp/tests/4x8.png'