본문 바로가기

프로그래밍/Python

[DJango-admin 관리자]

[DJango-admin 관리자]


1. Django Project에서 Django 서비스 실행

python manage.py runserver 


(firstdjango_venv) PS D:\django_basic\firstproject> python manage.py runserver      

Watching for file changes with StatReloader

Performing system checks...


System check identified no issues (0 silenced).

December 21, 2020 - 16:43:09

Django version 3.1.4, using settings 'firstproject.settings'

Starting development server at http://127.0.0.1:8000/

Quit the server with CTRL-BREAK.


2. DJango admin 페이지 접속

http://127.0.0.1:8000/admin

로그인 창이 나오는데 최초 로그인할 계정을 다음 항에서 만들어 보자



3. Django 사용자 계정 생성


python manage.py createsuperuser

Username (leave blank to use 'administrator'): root

Email address: xxxbbb@gmail.com

Password:

Password (again):

Superuser created successfully.


4. 생성된 계정을 이용하여 로그인

로그인 하면 다음과 같은 초기 화면이 나온다.