0
0

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 Girls Tutorialを復習する(3)〜ログインページを作ろう〜

Last updated at Posted at 2019-07-06

注意事項はこちら。
https://qiita.com/K-Kazutaka/items/1a432bda4f723e6757d6
写経用の記事です。

blog/admin.py
from django.contrib import admin
from .models import Post

admin.site.register(Post)

Webサーバーで確認する
〜$ python manage.py runserver
ブラウザに行って http://127.0.0.1:8000/admin/ とアドレスバーにタイプします。

ログインするには、superuser (サイトの全てを管理するユーザー)を作る必要があります。 コマンドラインに戻り、python manage.py createsuperuser と入力し、enter キーを押します。

Username: admin
Email address: admin@admin.com
Password:
Password (again):
Superuser created successfully.

Django adminについてもっと知りたいときは、Djangoドキュメントを見るべし https://docs.djangoproject.com/ja/2.0/ref/contrib/admin/

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?