2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

DjangoでOSError: [Errno 22] Invalid argumentが発生したときの対処内容

Posted at

事象

Djangoをローカルの開発環境(Windows7)で開発中、特にソースコードを変更していないのに、トップページで検索ボタンを押下したときに以下のエラーが発生しました。

OSError: [Errno 22] Invalid argument

解決方法

ネットで探っていたところ、どうやらボタンを押下した後の遷移先の**ファイルが読み込めていない(読み取り専用状態になっている)**とこのエラーが出るみたいです。

たしかに,この直前に比較ツールでこの遷移先のHTMLファイルを開いていました。
何かの理由でファイルが開かれた状態になっているのかと思い、アプリケーションをすべて閉じて開発端末を再起動したら解決しました。

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?