.py ファイル内のこのコードの最初の行は、エラーを返します。
mime = magic.Magic(mime=True)
content_type = mime.from_buffer((data).read(1024))
request.session['content_type'] = content_type
if content_type == 'application/pdf' or content_type == 'application/msword':
request.session['upload_status'] = "Content type is valid according to (MAGIC)"
エラーメッセージは
__init__() got an unexpected keyword argument 'mime'
Django 1.4.1 と Python 2.7.3 を使用しています。マジックをインストールしました。何がうまくいかないのかわかりません-どんな助けでも大歓迎です!