3
4

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:templates設定したらTemplateDoesNotExist at /admin/ってなった場合の対応

Posted at

ノリノリでsetting.pyにテンプレート設定してヤッホイした後で、
「あっ!そうだ!管理画面使おう」って思ったら、「TemplateDoesNotExist at /admin/」エラー発生...。

解決法

/virtualenv/lib/python2.7/site-packages/django/contrib/admin/templates
配下の
admin
registration
フォルダをDjangoプロジェクトのtemplatesフォルダ内にコピー。
これで127.0.0.1:8000/admin復活!

詳細はこちら参照
[リンク]http://righthelp.xyz/question/8996549/admin-site-templatedoesnotexist-at-admin

以上、初投稿\(^o^)/

3
4
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
3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?