Search

Django - ๊ด€๋ฆฌ์ž(superuser) ์ƒ์„ฑํ•˜๊ธฐ

๊ด€๋ฆฌ์ž(superuser) ์ƒ์„ฑํ•˜๊ธฐ

๊ด€๋ฆฌ์ž ์ƒ์„ฑ ๋ช…๋ น

python manage.py createsuperuser
Shell
๋ณต์‚ฌ

๊ด€๋ฆฌ์ž username, password ์ž…๋ ฅ

> Username : admin > Email address: [์ด๋ฉ”์ผ์ฃผ์†Œ] > Password: 123456 > Password (again): 123456 This password is too short. It must contain at least 8 characters. This password is too common. This password is entirely numeric. > Bypass password validation and create user anyway? [y/N]: y > Superuser created successfully.
Shell
๋ณต์‚ฌ

์„œ๋ฒ„ ์‹คํ–‰

python manage.py runserver
Shell
๋ณต์‚ฌ

๊ด€๋ฆฌ์ž ํŽ˜์ด์ง€ ์ ‘์†

http://127.0.0.1:8000/admin
Shell
๋ณต์‚ฌ