Skip to content

Instantly share code, notes, and snippets.

@iromli
Created December 18, 2013 08:40
Show Gist options
  • Save iromli/8019162 to your computer and use it in GitHub Desktop.
Save iromli/8019162 to your computer and use it in GitHub Desktop.
[{
"pk": 1,
"model": "auth.user",
"fields": {
"username": "admin",
"first_name": "",
"last_name": "",
"is_active": true,
"is_superuser": true,
"is_staff": true,
"last_login": "2013-10-04T23:58:16Z",
"groups": [],
"user_permissions": [],
"password": "pbkdf2_sha256$10000$TinFrvc34uKO$pOCziU7HO9ttS/0pkvp9SyfBiDcWQUc5fdk5GKTJpGc=",
"email": "[email protected]",
"date_joined": "2013-10-04T23:58:16Z"
}
}]
@iromli
Copy link
Author

iromli commented Dec 18, 2013

Running sentry --conf=sentry.conf.py upgrade raises AttributeError: Problem installing fixture 'initial_data.json': 'NoneType' object has no attribute 'using'

@iromli
Copy link
Author

iromli commented Dec 18, 2013

Traceback (most recent call last):
  File "/home/iromli/.virtualenv/sentry-dev/lib/python2.7/site-packages/django/core/management/base.py", line 222, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/home/iromli/.virtualenv/sentry-dev/lib/python2.7/site-packages/django/core/management/base.py", line 255, in execute
    output = self.handle(*args, **options)
  File "/home/iromli/.virtualenv/sentry-dev/lib/python2.7/site-packages/sentry/management/commands/upgrade.py", line 26, in handle
    call_command('syncdb', migrate=True, interactive=(not options['noinput']))
  File "/home/iromli/.virtualenv/sentry-dev/lib/python2.7/site-packages/django/core/management/__init__.py", line 161, in call_command
    return klass.execute(*args, **defaults)
  File "/home/iromli/.virtualenv/sentry-dev/lib/python2.7/site-packages/django/core/management/base.py", line 255, in execute
    output = self.handle(*args, **options)
  File "/home/iromli/.virtualenv/sentry-dev/lib/python2.7/site-packages/django/core/management/base.py", line 385, in handle
    return self.handle_noargs(**options)
  File "/home/iromli/.virtualenv/sentry-dev/lib/python2.7/site-packages/south/management/commands/syncdb.py", line 92, in handle_noargs
    syncdb.Command().execute(**options)
  File "/home/iromli/.virtualenv/sentry-dev/lib/python2.7/site-packages/raven/contrib/django/management/__init__.py", line 37, in new_execute
    return original_func(self, *args, **kwargs)
  File "/home/iromli/.virtualenv/sentry-dev/lib/python2.7/site-packages/django/core/management/base.py", line 255, in execute
    output = self.handle(*args, **options)
  File "/home/iromli/.virtualenv/sentry-dev/lib/python2.7/site-packages/django/core/management/base.py", line 385, in handle
    return self.handle_noargs(**options)
  File "/home/iromli/.virtualenv/sentry-dev/lib/python2.7/site-packages/django/core/management/commands/syncdb.py", line 163, in handle_noargs
    database=db, skip_validation=True)
  File "/home/iromli/.virtualenv/sentry-dev/lib/python2.7/site-packages/django/core/management/__init__.py", line 161, in call_command
    return klass.execute(*args, **defaults)
  File "/home/iromli/.virtualenv/sentry-dev/lib/python2.7/site-packages/raven/contrib/django/management/__init__.py", line 37, in new_execute
    return original_func(self, *args, **kwargs)
  File "/home/iromli/.virtualenv/sentry-dev/lib/python2.7/site-packages/django/core/management/base.py", line 255, in execute
    output = self.handle(*args, **options)
  File "/home/iromli/.virtualenv/sentry-dev/lib/python2.7/site-packages/django/core/management/commands/loaddata.py", line 193, in handle
    obj.save(using=using)
  File "/home/iromli/.virtualenv/sentry-dev/lib/python2.7/site-packages/django/core/serializers/base.py", line 165, in save
    models.Model.save_base(self.object, using=using, raw=True)
  File "/home/iromli/.virtualenv/sentry-dev/lib/python2.7/site-packages/django/db/models/base.py", line 622, in save_base
    manager.using(using).filter(pk=pk_val).exists())):
AttributeError: Problem installing fixture 'initial_data.json': 'NoneType' object has no attribute 'using'

@davewongillies
Copy link

@mkirk-safari
Copy link

The model changed to "model": "sentry.user"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment