問題はレジスタ(非ラテン記号)である可能性があります。そのため、Django Adminにスタイルがない場合、そのようなエラーが発生する可能性があります。
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\django\core\servers\basehttp.py", line 283, in run
self.result = application(self.environ, self.start_response)
File "C:\Python27\lib\site-packages\django\contrib\staticfiles\handlers.py", line 69, in __call__
return super(StaticFilesHandler, self).__call__(environ, start_response)
File "C:\Python27\lib\site-packages\django\core\handlers\wsgi.py", line 273, in __call__
response = self.get_response(request)
File "C:\Python27\lib\site-packages\django\contrib\staticfiles\handlers.py", line 59, in get_response
return self.serve(request)
File "C:\Python27\lib\site-packages\django\contrib\staticfiles\handlers.py", line 52, in serve
return serve(request, self.file_path(request.path), insecure=True)
File "C:\Python27\lib\site-packages\django\contrib\staticfiles\views.py", line 39, in serve
return static.serve(request, path, document_root=document_root, **kwargs)
File "C:\Python27\lib\site-packages\django\views\static.py", line 54, in serve
mimetype, encoding = mimetypes.guess_type(fullpath)
File "C:\Python27\lib\mimetypes.py", line 294, in guess_type
init()
File "C:\Python27\lib\mimetypes.py", line 355, in init
db.read_windows_registry()
File "C:\Python27\lib\mimetypes.py", line 260, in read_windows_registry
for ctype in enum_types(mimedb):
File "C:\Python27\lib\mimetypes.py", line 250, in enum_types
ctype = ctype.encode(default_encoding) # omit in 3.x!
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 0: ordinal not in range(128)
あなたはDjangoの管理のスタイルを持っていない場合は、主に、あなたのstyleless HTMLページ内のタグに記載された情報を見なければなりません。おそらく、このようなエンディングの問題です。
簡単な解決策があります。 regeditをを実行し、XPで見る:
[HKEY_CLASSES_ROOT\CLSID\{4063BE15-3B08-470D-A0D5-B37161CFFD69}\EnableFullPage\MIME]
と7つのなどのキーで:
HKEY_CLASSES_ROOT\MIME\Database\Content Type
あり、無効シンボル(すべて英語である必要があります)も、あなたはいくつかのエントリと、すべての名前を変更する必要がある必要がありますうまく動作します。しかし、実際には、エンドコードとスタイルの問題を結びつけるのに時間がかかります。これがあなたの時間を節約することを願っています。