$ python manage.py createsuperuser
Username: admin
Email address: admin@example.com
base ❯ python manage.py createsuperuser
Username (leave blank to use 'shinisgood'): shin
Email address: admin@example.com
Password:
Password (again):
This password is too common.
This password is entirely numeric.
Bypass password validation and create user anyway? [y/N]: y
Superuser created successfully.
Django 관리자 사이트는 기본으로 활성화되어 있습니다
- 서버가 동작하고 있지 않다면 명령어 고고 !
python manage.py runserver
먼저 로그인 하자
polls/admin.py
에서 아래 명령 추가해주자 ~ admin
에게 Question objects
가 admin interface
가진다 라고 말해줘서 밑에 꺼 생기게 해from django.contrib import admin
from .models import Question
admin.site.register(Question)
admin.py
와 question
추가 했으니 아래 polls
보일것임
poll
아래 Question
누르면 Select question to change
보일것이당
《What’s up?》
질문을 클릭하여 수정 가능