1. 계정 있는지 확인해보기

manage.py이 있는 디렉토리로 가기

(django_site) ubuntu@ip-172-31-11-144:~$ cd django_site
(django_site) ubuntu@ip-172-31-11-144:~/django_site$ ls
bootstrap-4.6.1-dist  common  config  db.json  manage.py  mysite  pybo  requirements.txt
(django_site) ubuntu@ip-172-31-11-144:~/django_site$ python manage.py shell

Python 3.10.4 (main, Mar 31 2022, 08:41:55) [GCC 7.5.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>>
>>> from django.contrib.auth.models import User
>>> superusers = User.objects.filter(is_superuser=True)
>>> print(superusers)
<QuerySet []> #빈리스트면 유저 없음

2. 관리자 계정 만들기

(django_site) ubuntu@ip-172-31-11-144:~/django_site$ python manage.py createsuperuser
사용자 이름 (leave blank to use 'ubuntu'): jhj
이메일 주소:
Password: #aa454545
Password (again):
Superuser created successfully.

로그인 해보면 ~~ 짜란