[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. 생성된 계정을 이용하여 로그인
로그인 하면 다음과 같은 초기 화면이 나온다.
'프로그래밍 > Python' 카테고리의 다른 글
장고(DJango)관련 주요 명령어 (0) | 2020.12.28 |
---|---|
알기쉬운 파이썬-장고 개발환경 구조도 (0) | 2020.12.27 |
[DJango-프로젝트 환경설정] (0) | 2020.12.21 |
[요약] 파이썬(Python) SQLite - 테이블 수정/삭제 (0) | 2020.12.07 |
[요약] 파이썬(Python) SQLite - 테이블조회 (0) | 2020.12.07 |