Mezzanine の
対応方法を
Request Method: GET Request URL: http://www.monotalk.xyz/blog/dropwizard-jar%E8%B5%B7%E5%8B%95%E6%99%82%E3%81%AE%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89-%E3%81%A8%E3%81%9D%E3%81%AE%E5%8B%95%E4%BD%9C%E5%87%BA%E5%8A%9B%E7%B5%90%E6%9E%9C/ Django Version: 1.6.11 Exception Type: DataError Exception Value: 値は型character varying(200)としては長すぎます
前提
関連する
Django の
Version 1.6.11
Mezzanine の
Version 3.1.10
PostgreSQL
psql (8.4.20)
原因
PostgreSQL で
以下、
8.3. 文字型
ドキュメントに、
文字列長は
データ型宣言に
使われるnに 許される 最大値は これより 小さい ものです。 マルチバイト文字符号化方式に おいては 文字数と バイト数は まったく 異なっている ため、 この 値の 変更は 便利では ありません。 特定の 上限を 設けずに 長い 文字列を 保存したい 場合は、 適当な 上限を 設けるよりも、 textも しくは 長さの 指定が ないcharacter varyingを 使用してください。
Mezzanine で エラーとなる 具体的な オペレーション
基本的に
事象が
Support Django 1.7 migrations · stephenmcd/mezzanine@ebbe66f
現状の
IOError: [Errno 36] File name too long: '/var/xxx/templates/blog/blog_post_detail_\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82\xe3\x81\x82.html' ERROR 2017-11-04 22:52:20,680 exception 12366 140352274904832 Internal Server Error: /blog/ああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああ/ Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/django/core/handlers/exception.py", line 42, in inner response = get_response(request) File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 249, in _legacy_get_response response = self._get_response(request) File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 217, in _get_response response = self.process_exception_by_middleware(e, request) File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 215, in _get_response response = response.render()
対応方法
以下の
記事を 削除する
日本語タイトルを
短い
メタデータ欄から URL を 変更する
Mezzanine は
この
- ブログ投稿画面
- メタデータ欄押下後
SEO 対策で
以上です。
ファイル名が
長すぎると いう エラーに なります。 ↩
コメント