Skip to content

Instantly share code, notes, and snippets.

@anfedorov
Created July 6, 2009 18:06
Show Gist options
  • Save anfedorov/76cef1f8aea0ce92cb24 to your computer and use it in GitHub Desktop.
Save anfedorov/76cef1f8aea0ce92cb24 to your computer and use it in GitHub Desktop.
$ python manage.py shell
Traceback (most recent call last):
File "manage.py", line 11, in <module>
execute_manager(settings)
File "django/core/management/__init__.py", line 340, in execute_manager
utility.execute()
File "django/core/management/__init__.py", line 295, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "django/core/management/base.py", line 192, in run_from_argv
self.execute(*args, **options.__dict__)
File "django/core/management/base.py", line 219, in execute
output = self.handle(*args, **options)
File "django/core/management/base.py", line 348, in handle
return self.handle_noargs(**options)
File "django/core/management/commands/shell.py", line 18, in handle_noargs
loaded_models = get_models()
File "django/db/models/loading.py", line 136, in get_models
self._populate()
File "django/db/models/loading.py", line 57, in _populate
self.load_app(app_name, True)
File "django/db/models/loading.py", line 72, in load_app
mod = __import__(app_name, {}, {}, ['models'])
File "/sites/django/gcapi/../gcapi/api/models.py", line 413, in <module>
class Play(models.Model):
File "django/db/models/base.py", line 55, in __new__
new_class.add_to_class('_meta', Options(meta, **kwargs))
File "django/db/models/base.py", line 164, in add_to_class
value.contribute_to_class(cls, name)
File "django/db/models/options.py", line 92, in contribute_to_class
raise TypeError, "'class Meta' got invalid attribute(s): %s" % ','.join(meta_attrs.keys())
TypeError: 'class Meta' got invalid attribute(s): schema
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment