Help us understand the problem. What is going on with this article?

Django:templates設定したらTemplateDoesNotExist at /admin/ってなった場合の対応

More than 5 years have passed since last update.

ノリノリで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^)/

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away