createsuperuser и вход в систему
Создайте учётную запись администратора и откройте /admin
«createsuperuser и вход в систему» — бесплатный урок Django Academy на CoddyKit. Это урок 1 из 4. Ты можешь прочитать весь урок бесплатно ниже — а потом практиковать его прямо в браузере с встроенным редактором кода и ИИ-репетитором 24/7. Это часть пути обучения Django Academy, и твой прогресс синхронизируется между веб-версией и приложением CoddyKit. Курс Django Academy содержит 4 уроков всего.
Части этого урока еще не переведены и отображаются на английском.
Meet the Admin
Django ships with a full admin site, a ready-made web dashboard for managing your data, so you never have to build a CRUD panel by hand. 🎛️
Who Can Enter
The admin is locked to staff users, so first you need an account. A superuser is an account with full permissions across the whole site.
The Magic Command
You create that account from the terminal with one management command. The createsuperuser command walks you through it step by step.
python manage.py createsuperuserAnswer the Prompts
The command asks for a username, an optional email, and a password. Type them in and your admin account is born.
Hidden Password
When you type the password it stays invisible, so the cursor will not move. That blank screen is normal, your keystrokes are still being read. 🤫
Migrate First
Auth tables must exist before an account can be saved. If you see an error, run migrate once to set up the database.
python manage.py migrateStart the Server
To reach the admin you need the dev server running. Launch it with runserver and keep that terminal open.
python manage.py runserverFind the Door
The admin lives at a fixed URL. Open your browser to the /admin path and Django shows you a clean login screen.
http://127.0.0.1:8000/admin/Log In
Type the same username and password you just created. On success Django drops you into the admin dashboard, your control room for data.
What You See
At first the dashboard only lists Users and Groups. That is expected, you have not registered your own models yet.
Forgot Your Password
Locked out? You can reset any account from the terminal with the changepassword command, no email setup required.
python manage.py changepassword adminQuick Check
Which command creates a full-access admin account?
Recap
You made a superuser, started the server, and signed into /admin. That account is your key to managing data through the dashboard. 🔑
Часто задаваемые вопросы
Урок «createsuperuser и вход в систему» бесплатный?
Да — полный текст урока «createsuperuser и вход в систему» бесплатно доступен здесь в веб-версии. Чтобы практиковать его интерактивно (встроенный редактор кода и ИИ-репетитор 24/7) и разблокировать остальной курс Django Academy, подпишись на CoddyKit PRO. Курс Django Academy содержит 4 уроков всего.
Чему я научусь в уроке «createsuperuser и вход в систему»?
Создайте учётную запись администратора и откройте /admin Ты практикуешь Django Academy с помощью реального кода, который запускаешь прямо в браузере, и ИИ-репетитор 24/7 отвечает на твои вопросы во время урока.
Нужен ли мне опыт, чтобы начать Django Academy?
Предыдущий опыт не требуется. Django Academy на CoddyKit структурирован для всех уровней — от новичков до продвинутых, поэтому ты можешь начать отсюда или с самого начала и учиться в своем темпе. Это урок 1 из 4.
Сколько времени занимает урок «createsuperuser и вход в систему»?
Большинство уроков CoddyKit занимают около 5–10 минут. Каждый из них компактный и интерактивный, поэтому ты постоянно делаешь прогресс и продолжаешь с того же места в веб-версии и приложении.
Можно ли писать и запускать код в этом уроке Django Academy?
Да. Каждый урок Django Academy включает встроенный редактор кода, поэтому ты пишешь и запускаешь реальный код прямо в браузере и получаешь моментальную обратную связь от AI — локальная установка не требуется.
Все уроки этого курса
- createsuperuser и вход в систему
- Регистрация моделей с помощью admin.site
- Настройка ModelAdmin
- Встроенные формы и поля только для чтения