0Pricing
Django Academy · Aula

manage.py: Seu Centro de Comandos

Os comandos cotidianos executados por meio de manage.py

manage.py: Seu Centro de Comandos é uma aula grátis de Django Academy no CoddyKit. Esta é a aula 4 de 4. Você pode ler a aula completa abaixo gratuitamente — depois pratica ao vivo no navegador com um editor de código integrado e um tutor de IA 24/7. Faz parte do caminho de aprendizado de Django Academy, e seu progresso é sincronizado entre a web e o app CoddyKit. O curso de Django Academy inclui 4 aulas no total.

Partes desta aula ainda não foram traduzidas e aparecem em inglês.

Your Project's Remote Control

The manage.py file is the command center for your project. You run almost every Django task by calling it from the terminal. 🎮

It Knows Your Settings

Unlike the bare django-admin tool, manage.py already points at your settings.py. That is why commands just work inside your project.

The Basic Shape

Every command follows one pattern: python manage.py followed by the command name and any options you need.

python manage.py <command>

Start the Dev Server

The runserver command launches a local server so you can view your site in the browser while you build.

python manage.py runserver

Plan Schema Changes

The makemigrations command turns model edits into migration files that describe how your database should change.

python manage.py makemigrations

Apply Those Changes

The migrate command runs your migrations against the database, actually creating or updating the tables.

python manage.py migrate

Create an Admin User

The createsuperuser command makes an account that can log into Django's admin site and manage your data.

python manage.py createsuperuser

Open the Live Shell

The shell command opens an interactive Python session with your project loaded, perfect for testing queries on the fly.

python manage.py shell

Make a New App

You already met startapp, which also runs through manage.py. It scaffolds a fresh app folder inside your project.

python manage.py startapp shop

Discover Every Command

Run help to list all available commands, including ones added by your installed apps. It is a great way to explore.

python manage.py help

You Can Add Your Own

Apps can define custom management commands too. Once added, they run through manage.py exactly like the built-in ones.

Quick Check

Which command actually applies migrations to the database?

Recap: Commands at Your Fingertips

You learned that manage.py drives your project: runserver, makemigrations, migrate, createsuperuser, shell, and more. It is your daily toolkit. 🚀

Perguntas Frequentes

A aula “manage.py: Seu Centro de Comandos” é grátis?

Sim — o texto completo de “manage.py: Seu Centro de Comandos” é grátis para ler aqui na web. Para praticá-la interativamente (um editor de código integrado e um tutor de IA 24/7) e desbloquear o restante do curso de Django Academy, atualize para CoddyKit PRO. O curso de Django Academy inclui 4 aulas no total.

O que vou aprender em “manage.py: Seu Centro de Comandos”?

Os comandos cotidianos executados por meio de manage.py Você pratica Django Academy com código prático que executa diretamente no navegador, e um tutor de IA 24/7 responde suas dúvidas enquanto trabalha na aula.

Preciso ter experiência prévia para começar Django Academy?

Nenhuma experiência prévia é necessária. Django Academy no CoddyKit é estruturado para alunos iniciantes até avançados, então você pode começar aqui ou desde o início e aprender no seu ritmo. Esta é a aula 4 de 4.

Quanto tempo leva a aula “manage.py: Seu Centro de Comandos”?

A maioria das aulas CoddyKit leva cerca de 5–10 minutos. Cada uma é compacta e interativa, então você faz progresso constante e retoma exatamente de onde parou entre web e app.

Posso escrever e executar código nesta aula de Django Academy?

Sim. Cada aula de Django Academy inclui um editor de código integrado, então você escreve e executa código real direto no navegador e recebe feedback de IA instantaneamente — nenhuma configuração local necessária.

Todas as aulas deste curso

  1. startapp e a Estrutura de Pastas do Aplicativo
  2. Registre Aplicativos em INSTALLED_APPS
  3. Conhecendo settings.py
  4. manage.py: Seu Centro de Comandos
← Voltar para Django Academy