Mac OSX10.7のポートからDjango1.4.1とPython2.7をインストールしています。manage.py runserver 8000を実行しようとすると、エラーが発生します。
Unhandled exception in thread started by <bound method Command.inner_run of <django.contrib.staticfiles.management.commands.runserver.Command object at 0x10bb840d0>>
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/django/core/management/commands/runserver.py", line 91, in inner_run
self.validate(display_num_errors=True)
File "/Library/Python/2.7/site-packages/django/core/management/base.py", line 266, in validate
num_errors = get_validation_errors(s, app)
File "/Library/Python/2.7/site-packages/django/core/management/validation.py", line 30, in get_validation_errors
for (app_name, error) in get_app_errors().items():
File "/Library/Python/2.7/site-packages/django/db/models/loading.py", line 158, in get_app_errors
self._populate()
File "/Library/Python/2.7/site-packages/django/db/models/loading.py", line 64, in _populate
self.load_app(app_name, True)
File "/Library/Python/2.7/site-packages/django/db/models/loading.py", line 88, in load_app
models = import_module('.models', app_name)
File "/Library/Python/2.7/site-packages/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/Users/rankor777/PycharmProjects/PyCart/PyCartApp/models.py", line 40, in <module>
class Photo(models.Model):
File "/Users/rankor777/PycharmProjects/PyCart/PyCartApp/models.py", line 41, in Photo
title = models.Model(max_length=128)
File "/Library/Python/2.7/site-packages/django/db/models/base.py", line 289, in __init__
if args_len > len(self._meta.fields):
AttributeError: 'Model' object has no attribute '_meta'
これは何ですか、そしてそれを修正する方法は?